Type Alias JSModuleLoaderEvaluate

Source
pub type JSModuleLoaderEvaluate = Option<unsafe extern "C" fn(ctx: JSContextRef, key: JSValueRef) -> JSValueRef>;
Expand description

@typedef JSModuleLoaderEvaluate @abstract The callback invoked when evaluating a module. @param ctx The execution context to use. @param key A JSValue containing the module specifier to evaluate. @param scriptFetcher A JSValue containing the script fetcher. @param sentValue A JSValue containing the value to send to the module. @param resumeMode A JSValue containing the resume mode. @result A JSValue containing the result of evaluating the module.

Aliased Type§

pub enum JSModuleLoaderEvaluate {
    None,
    Some(unsafe extern "C" fn(*const OpaqueJSContext, *const OpaqueJSValue) -> *const OpaqueJSValue),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const OpaqueJSContext, *const OpaqueJSValue) -> *const OpaqueJSValue)

Some value of type T.