Function mozjs_sys::jsapi::JS::SetPromiseRejectionTrackerCallback

source ·
pub unsafe extern "C" fn SetPromiseRejectionTrackerCallback(
    cx: *mut JSContext,
    callback: PromiseRejectionTrackerCallback,
    data: *mut c_void,
)
Expand description

Sets the callback that’s invoked whenever a Promise is rejected without a rejection handler, and when a Promise that was previously rejected without a handler gets a handler attached.