querystring, url: repeated '&' in a paramsString will be skipped
Updates:
- skip the parsing process if a pair of a key and a value is empty
- add test cases for
querystring
andURLSearchParams
Fixes: https://github.com/nodejs/node/issues/10454
/cc @nodejs/url
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
querystring, url, url-whatwg, test