# A survey of unhandledRejection and rejectionHandled handlers

<div class="Box-body readme blob p-5 p-xl-6 gist-border-0" id="bkmrk-this-article-was-ori"><article class="markdown-body entry-content container-lg"><p class="callout info">This article was originally published at [https://gist.github.com/joepie91/06cca7058a34398f168b08223b642162](https://gist.github.com/joepie91/06cca7058a34398f168b08223b642162). </p>

Bluebird ([http://bluebirdjs.com/docs/api/error-management-configuration.html#global-rejection-events](http://bluebirdjs.com/docs/api/error-management-configuration.html#global-rejection-events))

- `process.on//unhandledRejection`: **(Node.js)** Potentially unhandled rejection.
- `process.on//rejectionHandled`: **(Node.js)** Cancel unhandled rejection, it was handled anyway.
- `self.addEventListener//unhandledrejection`: **(WebWorkers)** Potentially unhandled rejection.
- `self.addEventListener//rejectionhandled`: **(WebWorkers)** Cancel unhandled rejection, it was handled anyway.
- `window.addEventListener//unhandledrejection`: **(Modern browsers, IE &gt;= 9)** Potentially unhandled rejection.
- `window.addEventListener//rejectionhandled`: **(Modern browsers, IE &gt;= 9)** Cancel unhandled rejection, it was handled anyway.
- `window.onunhandledrejection`: **(IE &gt;= 6)** Potentially unhandled rejection.
- `window.onrejectionhandled`: **(IE &gt;= 6)** Cancel unhandled rejection, it was handled anyway.

WhenJS ([https://github.com/cujojs/when/blob/3.7.0/docs/debug-api.md](https://github.com/cujojs/when/blob/3.7.0/docs/debug-api.md))

- `process.on//unhandledRejection`: **(Node.js)** Potentially unhandled rejection.
- `process.on//rejectionHandled`: **(Node.js)** Cancel unhandled rejection, it was handled anyway.
- `window.addEventListener//unhandledRejection`: **(Modern browsers, IE &gt;= 9)** Potentially unhandled rejection.
- `window.addEventListener//rejectionHandled`: **(Modern browsers, IE &gt;= 9)** Cancel unhandled rejection, it was handled anyway.

Spec ([https://gist.github.com/benjamingr/0237932cee84712951a2](https://gist.github.com/benjamingr/0237932cee84712951a2))

- `process.on//unhandledRejection`: **(Node.js)** Potentially unhandled rejection.
- `process.on//rejectionHandled`: **(Node.js)** Cancel unhandled rejection, it was handled anyway.

Spec (WHATWG: [https://html.spec.whatwg.org/multipage/webappapis.html#unhandled-promise-rejections](https://html.spec.whatwg.org/multipage/webappapis.html#unhandled-promise-rejections))

- `window.addEventListener//unhandledrejection`: **(Browsers)** Potentially unhandled rejection.
- `window.addEventListener//rejectionhandled`: **(Browsers)** Cancel unhandled rejection, it was handled anyway.
- `window.onunhandledrejection`: **(Browsers)** Potentially unhandled rejection.
- `window.onrejectionhandled`: **(Browsers)** Cancel unhandled rejection, it was handled anyway.

ES6 Promises in Node.js ([https://nodejs.org/api/process.html#process\_event\_rejectionhandled](https://nodejs.org/api/process.html#process_event_rejectionhandled) onwards)

- `process.on//unhandledRejection`: Potentially unhandled rejection.
- `process.on//rejectionHandled`: Cancel unhandled rejection, it was handled anyway.

Yaku ([https://github.com/ysmood/yaku#unhandled-rejection](https://github.com/ysmood/yaku#unhandled-rejection))

- `process.on//unhandledRejection`: **(Node.js)** Potentially unhandled rejection.
- `process.on//rejectionHandled`: **(Node.js)** Cancel unhandled rejection, it was handled anyway.
- `window.onunhandledrejection`: **(Browsers)** Potentially unhandled rejection.
- `window.onrejectionhandled`: **(Browsers)** Cancel unhandled rejection, it was handled anyway.

</article></div>