summaryrefslogtreecommitdiff
path: root/std/node
diff options
context:
space:
mode:
Diffstat (limited to 'std/node')
-rw-r--r--std/node/_url.ts3
-rw-r--r--std/node/module.ts3
2 files changed, 2 insertions, 4 deletions
diff --git a/std/node/_url.ts b/std/node/_url.ts
index 82daa25e9..f85286df2 100644
--- a/std/node/_url.ts
+++ b/std/node/_url.ts
@@ -26,8 +26,7 @@ import {
CHAR_LOWERCASE_Z,
} from "../path/_constants.ts";
import * as path from "./path.ts";
-
-const isWindows = Deno.build.os === "windows";
+import { isWindows } from "../_util/os.ts";
const forwardSlashRegEx = /\//g;
const percentRegEx = /%/g;
diff --git a/std/node/module.ts b/std/node/module.ts
index c8c02bad3..597da09db 100644
--- a/std/node/module.ts
+++ b/std/node/module.ts
@@ -34,13 +34,12 @@ import * as nodeUtil from "./util.ts";
import * as path from "../path/mod.ts";
import { assert } from "../_util/assert.ts";
import { fileURLToPath, pathToFileURL } from "./url.ts";
+import { isWindows } from "../_util/os.ts";
const CHAR_FORWARD_SLASH = "/".charCodeAt(0);
const CHAR_BACKWARD_SLASH = "\\".charCodeAt(0);
const CHAR_COLON = ":".charCodeAt(0);
-const isWindows = Deno.build.os == "windows";
-
const relativeResolveCache = Object.create(null);
let requireDepth = 0;