JsObject
A JavaScript object seen from Kotlin. Reading and writing goes straight through to the engine, so a change here is a change the script sees.
Reading and writing a property is not a call from the host: it runs whatever getter, setter or proxy trap the object has, but leaves queued Promise reactions where they are. Calling a method is a call, and runs them before it returns, as evaluate does.
Inheritors
Functions
A host constructor, callable with new. build fills in the object it is given.
Defines an accessor property whose halves call back into the host. Either can be null.
Defines a data property, as Object.defineProperty would.
A one-argument host function, with the argument and the answer converted for you.
A two-argument host function.
A three-argument host function.
A host function that takes the arguments as they came.
True when the engine is open and this is its thread, so the object can be touched here.
A copy of the bytes this object views when it is an ArrayBuffer, a typed array or a DataView, read without running any script, or null for any other object. A detached buffer, or a view past the end of its buffer, gives no bytes.
ToPrimitive with hint, which can run the object's script.