PropertyDescriptor

data class PropertyDescriptor(name: String, value: RemoteObject?, writable: Boolean?, get: RemoteObject?, set: RemoteObject?, configurable: Boolean, enumerable: Boolean, wasThrown: Boolean?, isOwn: Boolean?, symbol: RemoteObject?)

Object property descriptor.

Constructors

PropertyDescriptor
Link copied to clipboard
fun PropertyDescriptor(name: String, value: RemoteObject? = null, writable: Boolean? = null, get: RemoteObject? = null, set: RemoteObject? = null, configurable: Boolean, enumerable: Boolean, wasThrown: Boolean? = null, isOwn: Boolean? = null, symbol: RemoteObject? = null)

Properties

configurable
Link copied to clipboard
val configurable: Boolean
True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object.
enumerable
Link copied to clipboard
val enumerable: Boolean
True if this property shows up during enumeration of the properties on the corresponding object.
get
Link copied to clipboard
val get: RemoteObject? = null
A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only).
isOwn
Link copied to clipboard
val isOwn: Boolean? = null
True if the property is owned for the object.
name
Link copied to clipboard
val name: String
Property name or symbol description.
set
Link copied to clipboard
val set: RemoteObject? = null
A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only).
symbol
Link copied to clipboard
val symbol: RemoteObject? = null
Property symbol object, if the property is of the symbol type.
value
Link copied to clipboard
val value: RemoteObject? = null
The value associated with the property.
wasThrown
Link copied to clipboard
val wasThrown: Boolean? = null
True if the result was thrown during the evaluation.
writable
Link copied to clipboard
val writable: Boolean? = null
True if the value associated with the property may be changed (data descriptors only).

Sources

jvm source
Link copied to clipboard