Skip to content

lib: modify DOMException to pass WPT #41517

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 2 commits into from

Conversation

XadillaX
Copy link
Contributor

No description provided.

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Jan 14, 2022
@@ -86,11 +99,17 @@ class DOMException extends Error {
if (internals === undefined) {
throwInvalidThisError(TypeError, 'DOMException');
}

if (disusedNamesSet.has(internals.name)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (disusedNamesSet.has(internals.name)) {
if (internals.name === 'DOMStringSizeError' ||
internals.name === 'NoDataAllowedError' ||
internals.name === 'ValidationError') {

}
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
}
}

Copy link
Member

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>
@Ayase-252 Ayase-252 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Jan 18, 2022
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 18, 2022
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

XadillaX added a commit that referenced this pull request Jan 20, 2022
PR-URL: #41517
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@XadillaX
Copy link
Contributor Author

XadillaX commented Jan 20, 2022

Landed in 9759695

@XadillaX XadillaX closed this Jan 20, 2022
BethGriggs pushed a commit that referenced this pull request Jan 25, 2022
PR-URL: #41517
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Linkgoron pushed a commit to Linkgoron/node that referenced this pull request Jan 31, 2022
PR-URL: nodejs#41517
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@danielleadams
Copy link
Contributor

@XadillaX when pulling into the 16.x release, this throws an error in the test suite.

This is the error I got:

/nodejs/node/test/common/wpt.js:496
        throw new Error(
        ^

Error: Found 1 unexpected failures. Consider updating test/wpt/status/webidl/ecmascript-binding/es-exceptions.json for these files:
DOMException-custom-bindings.any.js
    at process.<anonymous> (/nodejs/node/test/common/wpt.js:496:15)
    at process.emit (node:events:534:35)

Do you mind backporting this and/or investigating? Thank you.

targos pushed a commit that referenced this pull request Jul 31, 2022
PR-URL: #41517
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
guangwong pushed a commit to noslate-project/node that referenced this pull request Oct 10, 2022
PR-URL: nodejs/node#41517
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants