Constnium/node_modules/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js

8 lines
223 B
JavaScript
Raw Normal View History

2022-06-23 02:27:43 +02:00
'use strict';
module.exports = function isFullyPopulatedPropertyDescriptor(ES, Desc) {
return '[[Enumerable]]' in Desc
&& '[[Configurable]]' in Desc
&& (ES.IsAccessorDescriptor(Desc) || ES.IsDataDescriptor(Desc));
};