node/test/wpt/status
Filip Skokan b328bf74bd
lib,src: implement QuotaExceededError as DOMException-derived interface
Implement QuotaExceededError as a DOMException-derived interface per the
WebIDL specification update.

QuotaExceededError is now a proper constructor exposed as a global
[Exposed=*] interface that extends DOMException with optional `quota`
and `requested` attributes (both nullable doubles, defaulting to null).

The constructor validates that quota and requested are finite,
non-negative, and that requested is not less than quota when both are
provided.

QuotaExceededError is [Serializable] and supports structuredClone,
preserving the quota and requested values across the serialization
boundary.

Callers updated:
- crypto.getRandomValues() now throws a QuotaExceededError instance
- WebStorage (C++) now constructs QuotaExceededError directly

Refs: https://redirect.github.com/whatwg/webidl/pull/1465
Fixes: https://github.com/nodejs/node/issues/58987
PR-URL: https://github.com/nodejs/node/pull/62293

Reviewed-By: Mattias Buelens <mattias@buelens.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2026-03-19 14:41:50 +01:00
..
dom lib: implement passive listener behavior per spec 2025-10-04 03:17:35 +00:00
FileAPI lib: improve argument handling in Blob constructor 2026-02-27 10:25:22 +00:00
html/webappapis test: cleanup status files 2025-06-10 09:33:18 +00:00
wasm test: skip instantiateStreaming-bad-imports WPT 2023-03-29 11:58:19 +00:00
webmessaging worker: throw InvalidStateError in postMessage after close 2024-10-03 02:37:34 +00:00
compression.json stream: fix brotli error handling in web compression streams 2026-03-06 22:08:57 +00:00
console.json test: fix status when compiled without inspector 2025-10-19 17:39:54 +00:00
encoding.json src: enable Float16Array on global object 2025-05-05 01:07:33 +02:00
hr-time.json test: recognize wpt completion error 2023-11-03 16:04:32 +00:00
performance-timeline.json test: update performance-timeline wpt 2024-11-06 10:59:52 +01:00
resource-timing.json test: update WPT for WebCryptoAPI to 591c95ce61 2025-05-27 11:59:19 +00:00
streams.json stream: fix pipeTo to defer writes per WHATWG spec 2026-02-26 07:54:39 +00:00
url.json url: update ada to v3.4.2 and support unicode 17 2026-02-01 18:54:46 +00:00
urlpattern.json test: update WPT for urlpattern to 3ffda23e5a 2025-06-11 13:22:41 +02:00
user-timing.json test: recognize wpt completion error 2023-11-03 16:04:32 +00:00
web-locks.json test: reveal wpt evaluation errors in status files 2026-01-19 18:01:44 +00:00
WebCryptoAPI.cjs lib,src: implement QuotaExceededError as DOMException-derived interface 2026-03-19 14:41:50 +01:00
webidl.json test: reveal wpt evaluation errors in status files 2026-01-19 18:01:44 +00:00
webstorage.json lib,src: implement QuotaExceededError as DOMException-derived interface 2026-03-19 14:41:50 +01:00