Function mozjs_sys::jsapi::JS_ExecuteScript2

source ·
pub unsafe extern "C" fn JS_ExecuteScript2(
    cx: *mut JSContext,
    envChain: HandleObjectVector,
    script: Handle<*mut JSScript>,
    rval: MutableHandle<Value>,
) -> bool
Expand description

As above, but providing an explicit scope chain. envChain must not include the global object on it; that’s implicit. It needs to contain the other objects that should end up on the script’s scope chain.