pl.wendigo.chrome.domain.runtime / PropertyDescriptor

PropertyDescriptor

data class PropertyDescriptor (source)

Object property descriptor.

Constructors

<init>

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)

Object property descriptor.

Properties

configurable

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

val enumerable: Boolean

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

get

val get: RemoteObject?

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

isOwn

val isOwn: Boolean?

True if the property is owned for the object.

name

val name: String

Property name or symbol description.

set

val set: RemoteObject?

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

symbol

val symbol: RemoteObject?

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

value

val value: RemoteObject?

The value associated with the property.

wasThrown

val wasThrown: Boolean?

True if the result was thrown during the evaluation.

writable

val writable: Boolean?

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