mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
7471587d29
This commit adds support for "rejectionhandled" Web Event and "rejectionHandled" Node event. ```js import process from "node:process"; process.on("rejectionHandled", (promise) => { console.log("rejectionHandled", reason, promise); }); window.addEventListener("rejectionhandled", (event) => { console.log("rejectionhandled", event.reason, event.promise); }); ``` --------- Co-authored-by: Matt Mastracci <matthew@mastracci.com>
5 lines
144 B
Text
5 lines
144 B
Text
[WILDCARD]
|
|
unhandledrejection 1 Promise { <rejected> 1 }
|
|
Added catch handler to the promise
|
|
rejectionhandled 1 Promise { <rejected> 1 }
|
|
Success
|