Function mozjs_sys::jsapi::JS::CompileUtf8File
source ยท pub unsafe extern "C" fn CompileUtf8File(
cx: *mut JSContext,
options: *const ReadOnlyCompileOptions,
file: *mut FILE,
) -> *mut JSScript
Expand description
Compile the UTF-8 contents of the given file into a script. It is an error if the file contains invalid UTF-8. Return the script on success, or return null on failure (usually with an error reported).