From 721a4ad59d4a8bdd8470d6b98839137f14c84ba9 Mon Sep 17 00:00:00 2001 From: Valentin Anger Date: Wed, 29 Apr 2020 20:48:19 +0200 Subject: BREAKING: Map-like interface for Deno.env (#4942) --- std/path/win32.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'std/path') 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. -- cgit v1.2.3