Skip to content

fix(ext/web): remove QuotaExceededError from DOMException error names table#32151

Open
shtse8 wants to merge 1 commit intodenoland:mainfrom
shtse8:fix/quota-exceeded-error-code
Open

fix(ext/web): remove QuotaExceededError from DOMException error names table#32151
shtse8 wants to merge 1 commit intodenoland:mainfrom
shtse8:fix/quota-exceeded-error-code

Conversation

@shtse8
Copy link
Contributor

@shtse8 shtse8 commented Feb 12, 2026

Description

Per whatwg/webidl#1465, QuotaExceededError has been updated from a legacy DOMException name to a proper DOMException subclass. This PR implements the minimal change: removing QuotaExceededError from the error names table so that its .code returns 0 instead of 22, aligning with the updated WebIDL spec.

Changes

  • Removed QuotaExceededError entry from nameToCodeMapping in ext/web/01_dom_exception.js
  • Added unit test verifying new DOMException('msg', 'QuotaExceededError').code === 0

Testing

Added a test in tests/unit/dom_exception_test.ts that asserts the new behavior.

Fixes #30028

… table

Per whatwg/webidl#1465, QuotaExceededError has been
updated from a legacy DOMException name to a proper DOMException subclass.
As the minimal change, this removes QuotaExceededError from the error names
table so that `new DOMException('msg', 'QuotaExceededError').code` returns
0 instead of 22, aligning with the updated spec.

Fixes denoland#30028
@CLAassistant
Copy link

CLAassistant commented Feb 12, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update QuotaExceededError handling

2 participants