-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove disused entries from error names table (2.8.1.) #946
Conversation
I'm not sure this is correct, e.g., |
That's right, but this PR doesn't suggest removing that constant. What the table (2.8.1.) defines is the mapping from the error name to error code. e.g. I checked these mappings (of deprecated ones) by the following expression: [
new DOMException('foo', 'IndexSizeError').code,
new DOMException('foo', 'DOMStringSizeError').code,
new DOMException('foo', 'ValidationError').code,
new DOMException('foo', 'InvalidAccessError').code,
new DOMException('foo', 'NoDataAllowedError').code,
new DOMException('foo', 'TypeMismatchError').code
] The major 4 browsers all return |
In particular, this tests the deprecated ones, some removed ones, and some newer error names which intentionally don't have legacy error codes. See also whatwg/webidl#946. Closes #27151.
…ames table, a=testonly Automatic update from web-platform-tests DOMException: test code mapping for all error names In particular, this tests the deprecated ones, some removed ones, and some newer error names which intentionally don't have legacy error codes. See also whatwg/webidl#946. Closes #27151. -- wpt-commits: 93c6faceda56025f1c96c0155990bf1d231dac9c wpt-pr: 27181
…ames table, a=testonly Automatic update from web-platform-tests DOMException: test code mapping for all error names In particular, this tests the deprecated ones, some removed ones, and some newer error names which intentionally don't have legacy error codes. See also whatwg/webidl#946. Closes #27151. -- wpt-commits: 93c6faceda56025f1c96c0155990bf1d231dac9c wpt-pr: 27181 UltraBlame original commit: 84dd97dc22528263ce280a59cb531b3ab2fed488
No major browser implements these 3 error-name-to-error-code mappings in DOMException constructor. So this PR suggests removing these 3 entries from the table.
We found this while updating web platform test at web-platform-tests/wpt#27181.
cc @domenic