Function script::dom::bindings::import::module::jsapi::RejectPromise

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

Rejects the given promise with the given rejectionValue.

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