0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/ext
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
..
broadcast_channel chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
console chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
crypto chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
fetch chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
ffi chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
http chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
net chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
tls chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
url chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
web feat: add "unhandledrejection" event support (#12994) (#15080) 2022-07-14 22:39:20 +02:00
webgpu chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
webidl chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
websocket chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
webstorage chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00