Skip to content

Commit

Permalink
fix(URL): Add missing part assignment (denoland#7239)
Browse files Browse the repository at this point in the history
  • Loading branch information
nayeemrmn committed Aug 29, 2020
1 parent 84086e7 commit d6dc797
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cli/rt/11_url.js
Expand Up @@ -339,6 +339,7 @@
}
usedNonBase = true;
} else {
parts.slashes = baseParts.slashes;
parts.username = baseParts.username;
parts.password = baseParts.password;
parts.hostname = baseParts.hostname;
Expand Down
2 changes: 2 additions & 0 deletions cli/tests/unit/url_test.ts
Expand Up @@ -342,6 +342,8 @@ unitTest(function urlBase(): void {
assertEquals(new URL("efgh:", "http://foo/a/b?c#d").href, "efgh:");
assertEquals(new URL("efgh:", "file://foo/a/b?c#d").href, "efgh:");
assertEquals(new URL("efgh:", "abcd://foo/a/b?c#d").href, "efgh:");

assertEquals(new URL("/foo", "abcd:/").href, "abcd:/foo");
});

unitTest(function urlDriveLetterBase() {
Expand Down

0 comments on commit d6dc797

Please sign in to comment.