summaryrefslogtreecommitdiff
path: root/std/path
diff options
context:
space:
mode:
authorValentin Anger <syrupthinker@gryphno.de>2020-04-29 20:48:19 +0200
committerGitHub <noreply@github.com>2020-04-29 14:48:19 -0400
commit721a4ad59d4a8bdd8470d6b98839137f14c84ba9 (patch)
treea8a7f7810a92c366224564b62b5fe7acab717466 /std/path
parent17cf2ecdacea2254c06374866c4e7e83e282226d (diff)
BREAKING: Map-like interface for Deno.env (#4942)
Diffstat (limited to 'std/path')
-rw-r--r--std/path/win32.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/path/win32.ts b/std/path/win32.ts
index d4febf706..9bba66e2b 100644
--- a/std/path/win32.ts
+++ b/std/path/win32.ts
@@ -39,7 +39,7 @@ export function resolve(...pathSegments: string[]): string {
// absolute path, get cwd for that drive, or the process cwd if
// the drive cwd is not available. We're sure the device is not
// a UNC path at this points, because UNC paths are always absolute.
- path = env()[`=${resolvedDevice}`] || cwd();
+ path = env.get(`=${resolvedDevice}`) || cwd();
// Verify that a cwd was found and that it actually points
// to our drive. If not, default to the drive's root.