Companion

Properties

Link copied to clipboard

Enough for any form script, small enough that a runaway loop stops within about a second.

Link copied to clipboard

What maxStackBytes is unless a caller says otherwise.

Link copied to clipboard

True once load has finished, and from the start on every platform but the web.

Link copied to clipboard
const val MEMORY_LIMIT: Long

The most memory one engine may allocate, in bytes: room for a compiled program's heap, and no more.

Functions

Link copied to clipboard
suspend fun load()

Gets the engine ready before the first KiteJsScriptEngine opens. On JavaScript and WebAssembly it compiles the engine's WebAssembly, which a browser does only asynchronously; everywhere else it returns at once. Calling it again costs nothing.