-
Notifications
You must be signed in to change notification settings - Fork 55
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
reuse searchParams #9
Comments
Well, I haven't a chrome 49 version. Could you check what native code exists on URL/URLSearchParams for chrome 49 ? Or even do a pull request if you find a fix ? |
Could you please provide methe result of I can't accept right now your pull request because of the lacks of test, build, lint and description... I can do it if you tell me what is buggy on chrome 49. |
|
Fixed in 53ddfba ? |
currently every time get searchParams will create a new object, which is waste memory and cause problem.
currently, in chrome 49.
=>
will get some mysterious %3F in search string, seems it's caused by duplicated searchParams create.
btw, chrome 49 support both
URL
andURLSearchParams
, but nourl.searchParams
.this may help you debug.
well no i guess wrong.
only one searchParams call will cause this problem too.
=>
I found that.
this version of chrome native URLSearchParams doesn't cut leading
?
in chrome 49
in chrome 60
seems these should be more check before using native URLSearchParams, like
The text was updated successfully, but these errors were encountered: