1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 17:49:08 -05:00
denoland-deno/cli/tests/testdata/node
Bartek Iwańczuk 7471587d29
feat: "rejectionhandled" Web event and "rejectionHandled" Node event (#21875)
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>
2024-01-12 22:10:42 +00:00
..
require_esm_error chore: bump deno_core and update tests (#21467) 2023-12-06 17:02:52 -07:00
rejection_handled_web_process.ts feat: "rejectionhandled" Web event and "rejectionHandled" Node event (#21875) 2024-01-12 22:10:42 +00:00
rejection_handled_web_process.ts.out feat: "rejectionhandled" Web event and "rejectionHandled" Node event (#21875) 2024-01-12 22:10:42 +00:00
test.js fix(node): support nested tests in "node:test" (#21717) 2023-12-29 16:18:08 +01:00
test.out fix(node): support nested tests in "node:test" (#21717) 2023-12-29 16:18:08 +01:00
unhandled_rejection_web.ts fix(node): fire 'unhandledrejection' event when using node: or npm: imports (#19235) 2023-05-24 15:40:41 +02:00
unhandled_rejection_web.ts.out fix(node): fire 'unhandledrejection' event when using node: or npm: imports (#19235) 2023-05-24 15:40:41 +02:00
unhandled_rejection_web_process.ts fix(node): fire 'unhandledrejection' event when using node: or npm: imports (#19235) 2023-05-24 15:40:41 +02:00
unhandled_rejection_web_process.ts.out fix(node): fire 'unhandledrejection' event when using node: or npm: imports (#19235) 2023-05-24 15:40:41 +02:00