securityos/node_modules/es-abstract/helpers/isFullyPopulatedPropertyDes...

12 lines
355 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
'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));
};