[−][src]Trait boa::exec::Executor
An execution engine
Required methods
fn new() -> Self
Make a new execution engine
fn set_global(&mut self, name: String, val: Value) -> Value
Set a global variable called name
with the value val
fn get_global(&self, name: String) -> Value
Resolve the global variable name
fn make_scope(&mut self, this: Value) -> Scope
Create a new scope and return it
fn destroy_scope(&mut self) -> Scope
Destroy the current scope
fn run(&mut self, expr: &Expr) -> ResultValue
Run an expression