You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consturl=newURL("http://domain?var=1&var=2&var=3");constparams=Array.from(url.searchParams);// There is no `.clear()`for(letparamofurl.searchParams){url.searchParams.delete(param[0]);}console.log(url.href)//-> http://domain/?url.search=url.searchParams.toString();console.log(url.href)//-> http://domain/
Tested in Chrome and both correctly log the same (second) value.
Activity
stevenvachon commentedon Dec 28, 2016
@TimothyGu @jasnell
targos commentedon Dec 28, 2016
Proposed fix: #10486