Function script::dom::bindings::import::module::jsapi::JS::CompileFunction1

source ยท
pub unsafe extern "C" fn CompileFunction1(
    cx: *mut JSContext,
    envChain: HandleObjectVector,
    options: *const ReadOnlyCompileOptions,
    name: *const i8,
    nargs: u32,
    argnames: *const *const i8,
    srcBuf: *mut SourceText<Utf8Unit>,
) -> *mut JSFunction
Expand description

Compile a function with envChain plus the global as its scope chain. envChain must contain objects in the current compartment of cx. The actual scope chain used for the function will consist of With wrappers for those objects, followed by the current global of the compartment cx is in. This global must not be explicitly included in the scope chain.