definePrototypeProperty
fun definePrototypeProperty(cx: Context, key: Symbol, getter: ScriptableObject.LambdaGetterFunction, attributes: Int)(source)
fun definePrototypeProperty(cx: Context, key: Symbol, getter: ScriptableObject.LambdaGetterFunction?, setter: ScriptableObject.LambdaSetterFunction?, attributes: Int = DONTENUM)(source)
fun definePrototypeProperty(cx: Context, name: String, getter: ScriptableObject.LambdaGetterFunction, attributes: Int = DONTENUM or READONLY)(source)
Defines a prototype property through a getter. The result looks exactly like a property defined with Object.defineProperty and an accessor descriptor.
fun definePrototypeProperty(cx: Context, name: String, getter: ScriptableObject.LambdaGetterFunction?, setter: ScriptableObject.LambdaSetterFunction?, attributes: Int = DONTENUM)(source)
The getter and setter pair version of definePrototypeProperty.