Function mozjs_sys::jsapi::JS::Compile1

source ยท
pub unsafe extern "C" fn Compile1(
    cx: *mut JSContext,
    options: *const ReadOnlyCompileOptions,
    srcBuf: *mut SourceText<Utf8Unit>,
) -> *mut JSScript
Expand description

Compile the provided script using the given options. Return the script on success, or return null on failure (usually with an error reported).