-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
url: use "empty" object for empty query strings #6289
Conversation
This makes things consistent with the way that the querystring module creates parsed results.
/cc @Trott |
Any reason not to just use |
Probably performance. |
CI is green except for flaky tests. |
LGTM |
4 similar comments
LGTM |
LGTM |
LGTM |
LGTM |
This makes things consistent with the way that the querystring module creates parsed results. PR-URL: #6289 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Landed in e9dc630 |
Marking as don't land on v4.x and v5.x because this depends on a prior semver-major change. |
This makes things consistent with the way that the querystring module creates parsed results. PR-URL: nodejs#6289 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This makes things consistent with the way that the querystring module creates parsed results. PR-URL: #6289 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <mic.besace@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
nodejs/node#6289 This pull request changes the query string to be an empty object rather than an object inherited from Object.prototype. So it no longer has the hasOwnProperty method
Checklist
Affected core subsystem(s)
Description of change
This makes things consistent with the way that the
querystring
module creates parsed results.