Skip to content

lib: modify DOMException to pass WPT - #41517

Closed
XadillaX wants to merge 2 commits into
nodejs:masterfrom
XadillaX:fix-domexception
Closed

lib: modify DOMException to pass WPT#41517
XadillaX wants to merge 2 commits into
nodejs:masterfrom
XadillaX:fix-domexception

Conversation

@XadillaX

Copy link
Copy Markdown
Contributor

No description provided.

@nodejs-github-botnodejs-github-bot added the needs-ci PRs that need a full CI run. label Jan 14, 2022
Comment threadlib/internal/per_context/domexception.js Outdated
throwInvalidThisError(TypeError, 'DOMException');
}

if (disusedNamesSet.has(internals.name)) {

Copy link
Copy Markdown
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'){

"path": "webidl/ecmascript-binding/es-exceptions"
}
}
} No newline at end of file

Copy link
Copy Markdown
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
Copy Markdown
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-252Ayase-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-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 18, 2022
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
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

XadillaX commented Jan 20, 2022

Copy link
Copy Markdown
ContributorAuthor

Landed in 9759695

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>
@ruyadornoruyadorno mentioned this pull request Feb 8, 2022
@danielleadams

Copy link
Copy Markdown
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>
@targostargos mentioned this pull request Aug 3, 2022
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>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@XadillaX@nodejs-github-bot@danielleadams@jasnell@benjamingr@aduh95@RaisinTen@targos@Ayase-252