JavaScripture
Contribute via GitHub Feedback

PromiseRejectionEvent : Event

Event data for when a Promise's reject handler is called or an exception is thrown in an Promise executor function or in an async function. See window.onunhandledrejection.

Instance Properties

promise : Promise  

The promise that had the unhandled rejection.

Example:

Run

Results: