Files
node/test/parallel
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
..
2024-09-28 13:58:55 +00:00
2023-08-15 13:45:44 +00:00
2021-08-25 07:55:32 -07:00
2018-12-10 17:07:18 +01:00
2024-09-26 08:24:39 +00:00
2019-04-16 03:37:03 +02:00
2024-06-23 06:08:59 +00:00
2023-11-15 11:49:14 +00:00
2020-12-29 15:49:09 +00:00
2017-11-26 08:47:33 -08:00
2017-11-10 14:27:52 -05:00
2017-06-21 03:40:27 +03:00
2024-09-28 13:58:55 +00:00
2025-10-11 17:20:57 +00:00
2024-09-28 13:58:55 +00:00
2020-04-06 01:53:54 +02:00
2020-04-06 01:53:54 +02:00
2020-03-19 10:56:45 +01:00
2025-02-08 12:43:53 +00:00
2025-02-08 12:43:53 +00:00