This repository has been archived on 2024-09-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
front/node_modules/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js
2024-09-18 13:34:19 -03:00

12 lines
355 B
JavaScript

'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));
};