0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/ext/web
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
..
benches chore: fix failing bench (#14644) 2022-05-17 16:28:03 +02:00
00_infra.js feat(ext/web): implement static Response.json (#14566) 2022-05-13 14:28:05 +02:00
01_dom_exception.js refactor: primordials for instanceof (#13527) 2022-02-01 18:06:11 +01:00
01_mimesniff.js cleanup(web, fetch): dedupe minesniff / "extract a MIME type" algorithm (#14044) 2022-03-20 14:31:12 +01:00
02_event.js feat: add "unhandledrejection" event support (#12994) (#15080) 2022-07-14 22:39:20 +02:00
02_structured_clone.js fix(core): Don't override structured clone error messages from V8 (#13942) 2022-03-14 19:35:15 +01:00
02_timers.js Remove unstable Deno.sleepSync (#14719) 2022-06-13 21:28:00 +02:00
03_abort_signal.js feat(ext/web): Add AbortSignal.timeout() (#13687) 2022-03-14 20:19:22 +01:00
04_global_interfaces.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
05_base64.js perf(ext/web): optimize atob/btoa (#13841) 2022-03-05 20:12:30 +01:00
06_streams.js fix(fmt): prevent infinite loop when formatting certain binary expressions (#14725) 2022-05-25 19:55:31 -04:00
06_streams_types.d.ts chore: update copyright year (#13434) 2022-01-20 16:10:16 +09:00
08_text_encoding.js fix(ext/web): handle rid=0 in TextDecoder#decode (#14894) 2022-06-17 12:49:57 +02:00
09_file.js perf(web): optimize Blob.text and Blob.arrayBuffer (#13981) 2022-03-16 19:16:52 +05:30
10_filereader.js refactor: update runtime code for primordial check for iterators (#13510) 2022-02-07 13:54:32 +01:00
11_blob_url.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
12_location.js chore: update copyright to 2022 (#13306) 2022-01-07 22:09:52 -05:00
13_message_port.js refactor(core): Move Deno.core bindings to ops (#14793) 2022-06-07 11:25:10 +02:00
14_compression.js feature(web): enable deflate-raw compression format (#14863) 2022-06-14 10:10:28 -06:00
15_performance.js fix: make Performance global an EventTarget 2022-06-16 12:05:33 -04:00
blob.rs chore(runtime): Make some ops in ext and runtime infallible. (#14589) 2022-05-13 10:36:31 +02:00
Cargo.toml chore: forward v1.23.4 release commit to main (#15172) 2022-07-12 17:08:36 -04:00
compression.rs feature(web): enable deflate-raw compression format (#14863) 2022-06-14 10:10:28 -06:00
internal.d.ts feat(ext/web): implement static Response.json (#14566) 2022-05-13 14:28:05 +02:00
lib.deno_web.d.ts fix(ext/web): add EventTarget brand checking (#14637) 2022-06-17 11:05:02 -04:00
lib.rs perf(ext/web): avoid reallocations in op_base64_atob (#15018) 2022-06-30 14:18:06 +05:30
message_port.rs chore(web, worker): Use DetachedBuffer for postMessage ops (#15133) 2022-07-11 17:27:33 +02:00
README.md Rename extensions/ directory to ext/ (#11643) 2021-08-11 12:27:05 +02:00
timers.rs Remove unstable Deno.sleepSync (#14719) 2022-06-13 21:28:00 +02:00

deno web

Op crate that implements Event, TextEncoder, TextDecoder and File API (https://w3c.github.io/FileAPI).

Testing for text encoding is done via WPT in cli/.