You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
355 B
12 lines
355 B
'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));
|
|
};
|