mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 17:49:08 -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> |
||
---|---|---|
.. | ||
require_esm_error | ||
rejection_handled_web_process.ts | ||
rejection_handled_web_process.ts.out | ||
test.js | ||
test.out | ||
unhandled_rejection_web.ts | ||
unhandled_rejection_web.ts.out | ||
unhandled_rejection_web_process.ts | ||
unhandled_rejection_web_process.ts.out |