FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

url,lib: pass urlsearchparams-constructor.any.js by XadillaX · Pull Request #41197 · nodejs/node · GitHub

/ node Public

url,lib: pass urlsearchparams-constructor.any.js - #41197

Closed
XadillaX wants to merge 1 commit into
nodejs:masterfrom
XadillaX:urlsearchparams-constructor.any.js-2
Closed

url,lib: pass urlsearchparams-constructor.any.js#41197
XadillaX wants to merge 1 commit into
nodejs:masterfrom
XadillaX:urlsearchparams-constructor.any.js-2

Conversation

Copy link
Copy Markdown
Contributor

NOTE: It's a reopening of #39944 because that PR was stuck.

According to WPT:

  1. URLSearchParams constructor should throw exactly TypeError if any
    Error occurrs.
  2. When a record passed to URLSearchParams constructor, two different
    key may result same after toUVString(). We should leave only the
    later one.

XadillaX requested a review from watilde December 16, 2021 08:58
nodejs-github-bot added needs-ci PRs that need a full CI run. whatwg-url Issues and PRs related to the WHATWG URL implementation. labels Dec 16, 2021
XadillaX requested a review from addaleax December 17, 2021 05:11
}

get code() { return 'ERR_INVALID_THIS'; }
function throwInvalidThisError(Base, type) {

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Is the change to domexception.js related to the urlsearchparams change? If it is, it's not clear how. Also, it would likely be better to separate this out into a separate commit in the PR if it is related.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This modification is to pass urlsearchparams-contructor.any.js too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

URLSearchParams constructor should throw exactly TypeError if any Error occurrs but not inheritance.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Comment thread lib/internal/url.js Outdated
XadillaX force-pushed the urlsearchparams-constructor.any.js-2 branch from c2e77f2 to c0a9720 Compare December 20, 2021 06:00
According to WPT:

1. `URLSearchParams` constructor should throw exactly `TypeError` if any
   Error occurrs.
2. When a record passed to `URLSearchParams` constructor, two different
   key may result same after `toUVString()`. We should leave only the
   later one.
XadillaX force-pushed the urlsearchparams-constructor.any.js-2 branch from c0a9720 to 59e2c32 Compare December 20, 2021 06:04

Copy link
Copy Markdown
Contributor Author

/ping @aduh95

Copy link
Copy Markdown
Contributor Author

@addaleax Hi Anna, would you please take a look at this PR?

Copy link
Copy Markdown
Contributor Author

/cc @watilde

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

XadillaX added a commit that referenced this pull request Jan 11, 2022
According to WPT:

1. `URLSearchParams` constructor should throw exactly `TypeError` if any
   Error occurrs.
2. When a record passed to `URLSearchParams` constructor, two different
   key may result same after `toUVString()`. We should leave only the
   later one.

PR-URL: #41197
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>

XadillaX commented Jan 11, 2022
edited
Loading

Copy link
Copy Markdown
Contributor Author

Landed in 38b7961

XadillaX closed this Jan 11, 2022

aduh95 commented Jan 11, 2022

Copy link
Copy Markdown
Contributor

denoland/deno@b8303c7

Did you mean: "Landed in 38b7961"? 😅

Copy link
Copy Markdown
Contributor Author

denoland/deno@b8303c7

Did you mean: "Landed in 38b7961"? 😅

Yes. I think I copied the wrong text🙈

targos pushed a commit that referenced this pull request Jan 14, 2022
According to WPT:

1. `URLSearchParams` constructor should throw exactly `TypeError` if any
   Error occurrs.
2. When a record passed to `URLSearchParams` constructor, two different
   key may result same after `toUVString()`. We should leave only the
   later one.

PR-URL: #41197
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
targos pushed a commit that referenced this pull request Jul 31, 2022
According to WPT:

1. `URLSearchParams` constructor should throw exactly `TypeError` if any
   Error occurrs.
2. When a record passed to `URLSearchParams` constructor, two different
   key may result same after `toUVString()`. We should leave only the
   later one.

PR-URL: #41197
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
guangwong pushed a commit to noslate-project/node that referenced this pull request Oct 10, 2022
According to WPT:

1. `URLSearchParams` constructor should throw exactly `TypeError` if any
   Error occurrs.
2. When a record passed to `URLSearchParams` constructor, two different
   key may result same after `toUVString()`. We should leave only the
   later one.

PR-URL: nodejs/node#41197
Reviewed-By: Zijian Liu <lxxyxzj@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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-ci PRs that need a full CI run. whatwg-url Issues and PRs related to the WHATWG URL implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL