Function mozjs_sys::jsapi::JS::FinishDynamicModuleImport

source ·
pub unsafe extern "C" fn FinishDynamicModuleImport(
    cx: *mut JSContext,
    evaluationPromise: Handle<*mut JSObject>,
    referencingPrivate: Handle<Value>,
    moduleRequest: Handle<*mut JSObject>,
    promise: Handle<*mut JSObject>,
) -> bool
Expand description

This must be called after a dynamic import operation is complete.

If |evaluationPromise| is rejected, the rejection reason will be used to complete the user’s promise.