definePrototypeProperty
fun definePrototypeProperty(cx: Context, key: Symbol, getter: ScriptableObject.LambdaGetterFunction, attributes: Int)
fun definePrototypeProperty(cx: Context, key: Symbol, getter: ScriptableObject.LambdaGetterFunction?, setter: ScriptableObject.LambdaSetterFunction?, attributes: Int = DONTENUM)
fun definePrototypeProperty(cx: Context, name: String, getter: ScriptableObject.LambdaGetterFunction, attributes: Int = DONTENUM or READONLY)
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)
The getter and setter pair version of definePrototypeProperty.