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>
35 lines
1.1 KiB
JSON
35 lines
1.1 KiB
JSON
{
|
|
"event_constructor.window.js": {
|
|
"skip": "StorageEvent is currently unimplemented."
|
|
},
|
|
"event_initstorageevent.window.js": {
|
|
"skip": "StorageEvent is currently unimplemented."
|
|
},
|
|
"localstorage-cross-origin-iframe.tentative.https.window.js": {
|
|
"skip": "iframes are not supported in Node.js."
|
|
},
|
|
"localstorage-cross-origin-iframe.https.window.js": {
|
|
"skip": "iframes are not supported in Node.js."
|
|
},
|
|
"storage_local_window_open.window.js": {
|
|
"skip": "window.open() is not supported in Node.js."
|
|
},
|
|
"storage_session_window_noopener.window.js": {
|
|
"skip": "window.open() is not supported in Node.js."
|
|
},
|
|
"storage_session_window_open.window.js": {
|
|
"skip": "window.open() is not supported in Node.js."
|
|
},
|
|
"storage_session_window_reopen.window.js": {
|
|
"skip": "window.open() is not supported in Node.js."
|
|
},
|
|
"symbol-props.window.js": {
|
|
"fail": {
|
|
"note": "https://github.com/nodejs/node/issues/59310",
|
|
"expected": [
|
|
"localStorage: defineProperty not configurable",
|
|
"sessionStorage: defineProperty not configurable"
|
|
]
|
|
}
|
|
}
|
|
}
|