Uh oh!
There was an error while loading. Please reload this page.
lib,url: correct URL's argument to pass idlharness - #39848
Closed
XadillaX wants to merge 1 commit into
Closed
Conversation
targos
commented
Aug 23, 2021
Member
I'd prefer to use a default value: |
targos
reviewed
Aug 23, 2021
Uh oh!
There was an error while loading. Please reload this page.
bricss
reviewed
Aug 23, 2021
Uh oh!
There was an error while loading. Please reload this page.
tniessen
approved these changes
Aug 23, 2021
`url.idl` defines URL's constructor as: ``` constructor(USVString url, optional USVString base); ``` `idlharness.any.js` checks its length as `1`. So we should remove constructor's second argument and use `arguments[1]` in constructor's logic. Refs: https://url.spec.whatwg.org/#idl-index
jasnell
approved these changes
Aug 24, 2021
nodejs-github-bot
commented
Aug 25, 2021
Collaborator
nodejs-github-bot
commented
Aug 26, 2021
Collaborator
XadillaX added a commit
that referenced
this pull request
Aug 26, 2021
`url.idl` defines URL's constructor as: ``` constructor(USVString url, optional USVString base); ``` `idlharness.any.js` checks its length as `1`. So we should remove constructor's second argument and use `arguments[1]` in constructor's logic. Refs: https://url.spec.whatwg.org/#idl-index PR-URL: #39848 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
XadillaX
commented
Aug 26, 2021
ContributorAuthor
Landed in 48655e1 |
targos
commented
Sep 6, 2021
Member
This depends on the semver-major #39176. Would you like to backport? |
targos pushed a commit
to targos/node
that referenced
this pull request
Oct 9, 2021
`url.idl` defines URL's constructor as: ``` constructor(USVString url, optional USVString base); ``` `idlharness.any.js` checks its length as `1`. So we should remove constructor's second argument and use `arguments[1]` in constructor's logic. Refs: https://url.spec.whatwg.org/#idl-index PR-URL: nodejs#39848 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
2 tasks
targos pushed a commit
that referenced
this pull request
Nov 4, 2021
`url.idl` defines URL's constructor as: ``` constructor(USVString url, optional USVString base); ``` `idlharness.any.js` checks its length as `1`. So we should remove constructor's second argument and use `arguments[1]` in constructor's logic. Refs: https://url.spec.whatwg.org/#idl-index PR-URL: #39848 Backport-PR-URL: #40383 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
url.idldefines URL's constructor as:idlharness.any.jschecks its length as1. So we should removeconstructor's second argument and use
arguments[1]in constructor'slogic.
Refs: https://url.spec.whatwg.org/#idl-index