NativeSymbol
The Symbol wrapper object. The primitive symbol value is a SymbolKey; this class is only what Object(sym) produces, and it carries the key in an internal slot.
Properties
Functions
Link copied to clipboard
Link copied to clipboard
True for an object that has to pretend it is undefined, which only NativeWith does.
Link copied to clipboard
fun defineBuiltinProperty(scope: Scriptable, name: String, length: Int, target: SerializableCallable, attributes: Int = DONTENUM, propertyAttributes: Int = DONTENUM or READONLY)
Same as above for a built-in method, which does not get a prototype property.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun defineProperty(cx: Context, name: String, getter: ScriptableObject.LambdaGetterFunction, attributes: Int)
fun defineProperty(cx: Context, key: Symbol, getter: ScriptableObject.LambdaGetterFunction?, setter: ScriptableObject.LambdaSetterFunction?, attributes: Int)
fun defineProperty(cx: Context, name: String, getter: ScriptableObject.LambdaGetterFunction?, setter: ScriptableObject.LambdaSetterFunction?, attributes: Int)
Defines a property whose value comes from a lambda that needs nothing but itself.
fun defineProperty(scope: Scriptable, name: String, length: Int, target: SerializableCallable, attributes: Int = DONTENUM, propertyAttributes: Int = DONTENUM or READONLY)
Defines a method backed by a Kotlin lambda.
Link copied to clipboard
A value another part of the engine parked on this object under key.
Link copied to clipboard
Link copied to clipboard
Converts this object to a primitive, guided by hint.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Backs the instanceof operator.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Seals the object, so no property can be added, removed or changed.
Link copied to clipboard
Link copied to clipboard
Attaches data that lives outside the engine, or detaches it with null.
Link copied to clipboard