Function mozjs_sys::jsapi::JS::CompileFunction
source ยท pub unsafe extern "C" fn CompileFunction(
cx: *mut JSContext,
envChain: HandleObjectVector,
options: *const ReadOnlyCompileOptions,
name: *const c_char,
nargs: c_uint,
argnames: *const *const c_char,
srcBuf: *mut SourceText<u16>,
) -> *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.