Function mozjs::jsapi::JS::CompileModule1

source ·
pub unsafe extern "C" fn CompileModule1(
    cx: *mut JSContext,
    options: *const ReadOnlyCompileOptions,
    srcBuf: *mut SourceText<Utf8Unit>
) -> *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. An error is reported if a UTF-8 encoding error is encountered.