Skip to main content

JS_SetModuleLoaderFunc2

Function JS_SetModuleLoaderFunc2 

Source
pub unsafe extern "C" fn JS_SetModuleLoaderFunc2(
    rt: *mut JSRuntime,
    module_normalize: Option<unsafe extern "C" fn(*mut JSContext, *const i8, *const i8, *mut c_void) -> *mut i8>,
    module_loader: Option<unsafe extern "C" fn(*mut JSContext, *const i8, *mut c_void, JSValue) -> *mut JSModuleDef>,
    module_check_attrs: Option<unsafe extern "C" fn(*mut JSContext, *mut c_void, JSValue) -> i32>,
    opaque: *mut c_void,
)