diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-05-18 08:46:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 08:46:56 -0400 |
commit | 2a038eafcd1bd715f865e3b4642575af05893dc5 (patch) | |
tree | fb9ba01ffa2ddd8324b0132a2a45b79336010cc4 /std/path/posix.ts | |
parent | f6caf4883dc507d9aa7f222868f5e7f844d303f3 (diff) |
Revert "Fix definition of URL constructor (#5521)" (#5564)
This reverts commit 63bc468365bceda929a39b5eb93b605e2dc2bd9c.
Diffstat (limited to 'std/path/posix.ts')
-rw-r--r-- | std/path/posix.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/path/posix.ts b/std/path/posix.ts index 981d32a8c..e88eb3f97 100644 --- a/std/path/posix.ts +++ b/std/path/posix.ts @@ -430,5 +430,5 @@ export function parse(path: string): ParsedPath { * are ignored. */ export function fromFileUrl(url: string | URL): string { - return new URL(url.toString()).pathname; + return new URL(url).pathname; } |