DescriptorInfo

constructor(desc: ScriptableObject)(source)

Reads a descriptor out of a script object: ToPropertyDescriptor (ECMAScript 2015, 6.2.4.5). Each field is asked for with HasProperty before it is read, in the spec's order, and the three flags become booleans. Upstream read every field with a bare get in its own order and kept the raw values, so a proxy descriptor answering undefined for get looked like an accessor and {enumerable: 1} compared unequal to true.


constructor(desc: Scriptable)(source)
constructor(enumerable: Boolean, writable: Boolean, configurable: Boolean, value: Any?)(source)
constructor(enumerable: Any?, writable: Any?, configurable: Any?, getter: Any?, setter: Any?, value: Any?)(source)