ContextFactory
Makes Context objects and answers the questions a context asks about its environment: which optional behaviours are on, and what wraps a top-level call.
An embedder subclasses this to change those answers. Upstream also hangs class loaders and thread-safety defaults here; neither exists in this port.
Types
Functions
Link copied to clipboard
Link copied to clipboard
open fun doTopCall(callable: Callable, cx: Context, scope: Scriptable, thisObj: Scriptable?, args: Array<Any?>): Any?
Wraps every top-level call. The default flattens a lazy string result.
Link copied to clipboard
Link copied to clipboard
Whether an optional engine behaviour is on. These are the defaults; a subclass changes them by overriding this. Thread-safe objects are always off.
Link copied to clipboard
Called every time the interpreter has run instructionCount more instructions.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard