-
Notifications
You must be signed in to change notification settings - Fork 30k
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
lib: modify DOMException
to pass WPT
#41517
Conversation
@@ -86,11 +99,17 @@ class DOMException extends Error { | |||
if (internals === undefined) { | |||
throwInvalidThisError(TypeError, 'DOMException'); | |||
} | |||
|
|||
if (disusedNamesSet.has(internals.name)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (disusedNamesSet.has(internals.name)) { | |
if (internals.name === 'DOMStringSizeError' || | |
internals.name === 'NoDataAllowedError' || | |
internals.name === 'ValidationError') { |
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
} | |
} | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIUC, this file has been auto-generated by git node wpt
, so we should send a corresponding fix for this to https://github.com/nodejs/node-core-utils
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
PR-URL: #41517 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Landed in 9759695 |
PR-URL: #41517 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#41517 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
@XadillaX when pulling into the 16.x release, this throws an error in the test suite. This is the error I got:
Do you mind backporting this and/or investigating? Thank you. |
PR-URL: #41517 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs/node#41517 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
No description provided.