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.