[][src]Function boa::forward_val

pub fn forward_val(engine: &mut Interpreter, src: &str) -> ResultValue

Execute the code using an existing Interpreter. The str is consumed and the state of the Interpreter is changed Similar to forward, except the current value is returned instad of the string If the interpreter fails parsing an error value is returned instead (error object)