source: imaps-frontend/node_modules/es-abstract/helpers/isFullyPopulatedPropertyDescriptor.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 355 bytes
Line 
1'use strict';
2
3var isPropertyDescriptor = require('./records/property-descriptor');
4
5module.exports = function isFullyPopulatedPropertyDescriptor(ES, Desc) {
6 return isPropertyDescriptor(Desc)
7 && typeof Desc === 'object'
8 && '[[Enumerable]]' in Desc
9 && '[[Configurable]]' in Desc
10 && (ES.IsAccessorDescriptor(Desc) || ES.IsDataDescriptor(Desc));
11};
Note: See TracBrowser for help on using the repository browser.