Skip to main content

SetModuleLoadHook

Function SetModuleLoadHook 

Source
pub unsafe extern "C" fn SetModuleLoadHook(
    rt: *mut JSRuntime,
    func: Option<unsafe extern "C" fn(*mut JSContext, Handle<*mut JSScript>, Handle<*mut JSObject>, Handle<Value>, Handle<Value>, u32, ColumnNumberOneOrigin) -> bool>,
)
Expand description

Set the HostLoadImportedModule hook for the runtime to the given function.