Function mozjs::jsapi::CompileModule

source ·
pub unsafe extern "C" fn CompileModule(
    cx: *mut JSContext,
    options: *const ReadOnlyCompileOptions,
    srcBuf: *mut SourceText<u16>
) -> *mut JSObject
Expand description

Parse the given source buffer as a module in the scope of the current global of cx and return a source text module record.