PropertyDescriptor

external interface PropertyDescriptor(source)

Object property descriptor.

Properties

Link copied to clipboard
abstract external var configurable: Boolean

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

Link copied to clipboard
abstract external var enumerable: Boolean

True if this property shows up during enumeration of the properties on the corresponding object.

Link copied to clipboard
abstract external var get: RemoteObject?

A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only).

Link copied to clipboard
abstract external var isOwn: Boolean?

True if the property is owned for the object.

Link copied to clipboard
abstract external var name: String

Property name or symbol description.

Link copied to clipboard
abstract external var set: RemoteObject?

A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only).

Link copied to clipboard
abstract external var symbol: RemoteObject?

Property symbol object, if the property is of the symbol type.

Link copied to clipboard
abstract external var value: RemoteObject?

The value associated with the property.

Link copied to clipboard
abstract external var wasThrown: Boolean?

True if the result was thrown during the evaluation.

Link copied to clipboard
abstract external var writable: Boolean?

True if the value associated with the property may be changed (data descriptors only).