Optional
cIdentifies if this property should be configurable (true) when this value is set to false,
Optional
eIdentifies if this property will be visible during enumeration of the properties on the corresponding object. Defaults to true.
Optional
lA Lazy value instance which will be used to return the value, this will be wrapped in a getter function.
Optional
vdata descriptor The value associated with the property. Can be any valid JavaScript value (number, object, function, etc.). Defaults to undefined.
Optional
wtrue if the value associated with the property may be changed with an assignment operator. Defaults to false.
Optional
gA function which serves as a getter for the property, or undefined if there is no getter. When the property is accessed, this function is called without arguments and with this set to the object through which the property is accessed (this may not be the object on which the property is defined due to inheritance). The return value will be used as the value of the property. Defaults to undefined.
Optional
sA function which serves as a setter for the property, or undefined if there is no setter. When the property is assigned, this function is called with one argument (the value being assigned to the property) and with this set to the object through which the property is assigned. Defaults to undefined.
Definition of the Property Descriptor mappings for the objDefine functions. If a descriptor has neither of value, writable, get and set keys, it is treated as a data descriptor. If a descriptor has both [value or writable] and [get or set] keys, an exception is thrown. Bear in mind that these attributes are not necessarily the descriptor's own properties. Inherited properties will be considered as well. In order to ensure these defaults are preserved, you might freeze existing objects in the descriptor object's prototype chain upfront, specify all options explicitly, or point to null with objCreate(null).
Since
0.6.0