Skip to content
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

URLSearchParams can not parse % #525

Closed
tp4k opened this issue Apr 4, 2019 · 1 comment
Closed

URLSearchParams can not parse % #525

tp4k opened this issue Apr 4, 2019 · 1 comment

Comments

@tp4k
Copy link

tp4k commented Apr 4, 2019

Native realization works like this:

[...new URLSearchParams('?a=%').entries()][0]
Array [ "a", "%" ]

Whereas pollyfill fails:

new URLSearchParams('?a=%')
URIError: malformed URI sequence

because of https://github.com/zloirock/core-js/blob/master/packages/core-js/modules/web.url-search-params.js#L25

@tp4k
Copy link
Author

tp4k commented Apr 5, 2019

Wow, super fast. Thanks, man!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants