Function SetPromiseRejectionTrackerCallback

Source
pub unsafe extern "C" fn SetPromiseRejectionTrackerCallback(
    cx: *mut JSContext,
    callback: Option<unsafe extern "C" fn(*mut JSContext, bool, Handle<*mut JSObject>, PromiseRejectionHandlingState, *mut c_void)>,
    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.