KiteJsScriptEngine
class KiteJsScriptEngine(val instructionBudget: Int = DEFAULT_INSTRUCTION_BUDGET, deadline: () -> Boolean? = null, clock: () -> Long? = null, sealBuiltins: Boolean = true, maxStackBytes: Long = DEFAULT_STACK_BYTES) : KiteScriptEngine(source)
A KiteScriptEngine that runs on KiteJS.
Document scripts are untrusted, so every call runs under instructionBudget: a script that never returns fails with a KiteScriptException instead of hanging the app. By default the built-ins are read-only, so one script cannot redefine what another relies on. Scripts reach nothing outside the engine except the functions and values the host defines.