isFullyPopulatedPropertyDescriptor.js 325 B

12345678910
  1. 'use strict';
  2. var isPropertyDescriptor = require('./records/property-descriptor');
  3. module.exports = function isFullyPopulatedPropertyDescriptor(ES, Desc) {
  4. return isPropertyDescriptor(Desc)
  5. && '[[Enumerable]]' in Desc
  6. && '[[Configurable]]' in Desc
  7. && (ES.IsAccessorDescriptor(Desc) || ES.IsDataDescriptor(Desc));
  8. };