forked from denoland/deno
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Use the same parse processing at contractor of URL with sette…
…rs (denoland#1549)" Right now every instance of URL which has a basePath passed will share the same instance of parts, so a change to one of them will change them all. denoland#1549 (comment) This reverts commit 9e1f5cc.
- Loading branch information
Showing
2 changed files
with
17 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,19 +31,6 @@ test(function urlParsing() { | |
); | ||
}); | ||
|
||
test(function constractorParsing() { | ||
const url = new URL("http:https://どめいん.com/ぱす?きー=ばりゅー#はっしゅ"); | ||
const { host, pathname, search, hash } = url; | ||
url.host = "どめいん.com"; | ||
url.pathname = "/ぱす"; | ||
url.search = "?きー=ばりゅー"; | ||
url.hash = "#はっしゅ"; | ||
assertEqual(host, url.host); | ||
assertEqual(pathname, url.pathname); | ||
assertEqual(search, url.search); | ||
assertEqual(hash, url.hash); | ||
}); | ||
|
||
test(function urlModifications() { | ||
const url = new URL( | ||
"https://foo:[email protected]:8000/qux/quux?foo=bar&baz=12#qat" | ||
|