summaryrefslogtreecommitdiff
path: root/std/node/module.ts
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/node/module.ts
parent17cf2ecdacea2254c06374866c4e7e83e282226d (diff)
BREAKING: Map-like interface for Deno.env (#4942)
Diffstat (limited to 'std/node/module.ts')
-rw-r--r--std/node/module.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/std/node/module.ts b/std/node/module.ts
index b7a0107d0..9203764f0 100644
--- a/std/node/module.ts
+++ b/std/node/module.ts
@@ -534,8 +534,8 @@ class Module {
}
static _initPaths(): void {
- const homeDir = Deno.env("HOME");
- const nodePath = Deno.env("NODE_PATH");
+ const homeDir = Deno.env.get("HOME");
+ const nodePath = Deno.env.get("NODE_PATH");
// Removed $PREFIX/bin/node case