1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00
denoland-deno/tools/wpt
Bartek Iwańczuk 1a7259b04b
feat: add "unhandledrejection" event support (#12994) (#15080)
Relanding #12994 

This commit adds support for "unhandledrejection" event.

This event will trigger event listeners registered using:

"globalThis.addEventListener("unhandledrejection")
"globalThis.onunhandledrejection"
This is done by registering a default handler using
"Deno.core.setPromiseRejectCallback" that allows to
handle rejected promises in JavaScript instead of Rust.

This commit will make it possible to polyfill
"process.on("unhandledRejection")" in the Node compat
layer.

Co-authored-by: Colin Ihrig <cjihrig@gmail.com>
2022-07-14 22:39:20 +02:00
..
certs tests: re-generate WPT certificates (#14774) 2022-06-02 00:50:48 +02:00
config.json fix(websocket): spec conformance & WPT (#11010) 2021-06-21 12:15:08 +02:00
expectation.json feat: add "unhandledrejection" event support (#12994) (#15080) 2022-07-14 22:39:20 +02:00
runner.ts refactor: use spawn API across codebase (#14414) 2022-05-18 22:00:11 +02:00
testharnessreport.js fix(ext/web): add EventTarget brand checking (#14637) 2022-06-17 11:05:02 -04:00
utils.ts refactor: use spawn API across codebase (#14414) 2022-05-18 22:00:11 +02:00