-
-
Notifications
You must be signed in to change notification settings - Fork 102
Closed
Description
const nativeURL = require("url").URL;
const shimmedURL = require("whatwg-url").URL;
const native = new nativeURL("http://host/?param");
native.searchParams.delete("param");
native.href;
//-> http://host/
const shimmed = new shimmedURL("http://host/?param");
shimmed.searchParams.delete("param");
shimmed.href;
//-> http://host/?
Pretty sure that the native one is correct. @TimothyGu ?
Metadata
Metadata
Assignees
Labels
No labels