PropertyDescriptor

@native @JSType trait PropertyDescriptor extends StObject

Object property descriptor.

Companion
object
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

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.

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

var enumerable: Boolean

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

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

var get: UndefOr[RemoteObject]

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

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

var isOwn: UndefOr[Boolean]

True if the property is owned for the object.

True if the property is owned for the object.

var name: String

Property name or symbol description.

Property name or symbol description.

var set: UndefOr[RemoteObject]

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

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

var symbol: UndefOr[RemoteObject]

Property symbol object, if the property is of the <code>symbol</code> type.

Property symbol object, if the property is of the <code>symbol</code> type.

var value: UndefOr[RemoteObject]

The value associated with the property.

The value associated with the property.

var wasThrown: UndefOr[Boolean]

True if the result was thrown during the evaluation.

True if the result was thrown during the evaluation.

var writable: UndefOr[Boolean]

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

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