Interpreter.this

Constructs a new Interpreter with a global environment. Note that all calls to evaluate run in a new environment below the global environment. This allows keywords such as let and const to not pollute the global namespace. However, scripts can use var to declare variables that are global.

class Interpreter
this
(
bool useVM = false
,
bool printVMDebugInfo = true
)

Parameters

useVM bool

whether or not compilation to bytecode and the VM should be used instead of tree walking.

printVMDebugInfo bool

if useVM is true, this option prints very verbose data while executing bytecode.

Meta