pub unsafe extern "C" fn CompileFunction(
cx: *mut JSContext,
envChain: HandleObjectVector,
options: *const ReadOnlyCompileOptions,
name: *const i8,
nargs: u32,
argnames: *const *const i8,
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.