Function js::jsapi::RejectPromise [] [src]

pub unsafe extern "C" fn RejectPromise(
    cx: *mut JSContext,
    promise: HandleObject,
    rejectionValue: HandleValue
) -> bool

Rejects the given promise with the given rejectionValue.

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