Function js::jsapi::Evaluate1 [] [src]

pub unsafe extern "C" fn Evaluate1(
    cx: *mut JSContext,
    scopeChain: *mut AutoObjectVector,
    options: *const ReadOnlyCompileOptions,
    srcBuf: *mut SourceBufferHolder,
    rval: MutableHandleValue
) -> bool

As above, but providing an explicit scope chain. scopeChain 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.