Constnium/node_modules/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js
2022-06-23 02:27:43 +02:00

7 lines
223 B
JavaScript

'use strict';
module.exports = function isFullyPopulatedPropertyDescriptor(ES, Desc) {
return '[[Enumerable]]' in Desc
&& '[[Configurable]]' in Desc
&& (ES.IsAccessorDescriptor(Desc) || ES.IsDataDescriptor(Desc));
};