Function mozjs_sys::jsapi::JS::ResolvePromise
source ยท pub unsafe extern "C" fn ResolvePromise(
cx: *mut JSContext,
promiseObj: HandleObject,
resolutionValue: HandleValue,
) -> 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.