ObjectPropertyDescriptor

package js.lib

import js.lib.Object

Available on js

See also:

Fields

optionalwritable:Null<Bool>

true if and only if the value associated with the property may be changed with an assignment operator.

Defaults to false.

optionalvalue:Null<Any>

The value associated with the property. Can be any valid JavaScript value (number, object, function, etc).

optionalset:Null<Any ‑> Void>

A function which serves as a setter for the property, or undefined if there is no setter. When the property is assigned to, 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.

optionalget:Null<() ‑> Any>

A 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.

optionalenumerable:Null<Bool>

true if and only if this property shows up during enumeration of the properties on the corresponding object.

Defaults to false.

optionalconfigurable:Null<Bool>

true if and only if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.

Defaults to false.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/lib/ObjectPropertyDescriptor.html