Function js::jsapi::CallOriginalPromiseThen
[−]
[src]
pub unsafe extern "C" fn CallOriginalPromiseThen(
cx: *mut JSContext,
promise: HandleObject,
onResolve: HandleObject,
onReject: HandleObject
) -> *mut JSObject
Calls the current compartment's original Promise.prototype.then on the
given promise
, with onResolve
and onReject
passed as arguments.
Asserts if the passed-in promise
object isn't an unwrapped instance of
Promise
or a subclass or onResolve
and onReject
aren't both either
nullptr
or callable objects.