Function mozjs::jsapi::ResolvePromise

source ยท
pub unsafe extern "C" fn ResolvePromise(
    cx: *mut JSContext,
    promiseObj: Handle<*mut JSObject>,
    resolutionValue: Handle<Value>,
) -> bool
Expand description

Resolves the given Promise with the given resolutionValue.

Calls the resolve function that was passed to the executor function when the Promise was created.