FLUJOS/BACK_BACK/node_modules/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js
2025-11-07 00:06:12 +01:00

11 lines
355 B
JavaScript
Executable file

'use strict';
var isPropertyDescriptor = require('./records/property-descriptor');
module.exports = function isFullyPopulatedPropertyDescriptor(ES, Desc) {
return isPropertyDescriptor(Desc)
&& typeof Desc === 'object'
&& '[[Enumerable]]' in Desc
&& '[[Configurable]]' in Desc
&& (ES.IsAccessorDescriptor(Desc) || ES.IsDataDescriptor(Desc));
};