Function mozjs::jsapi::JS::CompileJsonModule
source ยท pub unsafe extern "C" fn CompileJsonModule(
cx: *mut JSContext,
options: *const ReadOnlyCompileOptions,
srcBuf: *mut SourceText<u16>,
) -> *mut JSObject
Expand description
Parse the given source buffer as a JSON module in the scope of the current global of cx and return a synthetic module record.