Function js::jsapi::SetPromiseRejectionTrackerCallback
[−]
[src]
pub unsafe extern "C" fn SetPromiseRejectionTrackerCallback(
rt: *mut JSRuntime,
callback: JSPromiseRejectionTrackerCallback,
data: *mut c_void
)
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.