LambdaSlot

A Slot whose value comes from calling a Kotlin lambda. To script it looks like any ordinary value property, which is what separates it from AccessorSlot: the descriptor shows a plain value, not a getter and setter pair.

This is how a native property gets implemented without reflection.

Functions

Link copied to clipboard
open override fun getValue(start: Scriptable?): Any?
Link copied to clipboard
open override fun setValue(value: Any?, owner: Scriptable, start: Scriptable, isThrow: Boolean): Boolean
fun setValue(value: Any?, owner: Scriptable, start: Scriptable): Boolean