diff options
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 e88eb3f97..981d32a8c 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).pathname; + return new URL(url.toString()).pathname; } |