diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-05 18:18:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 22:18:13 +0000 |
commit | 5f34c9be91a42e9087536d63b7e319439ceba756 (patch) | |
tree | 529a4414ef89104fa39ab422181028670f6f718b /runtime/js/30_fs.js | |
parent | 273777f7d9201de92b6f8c6f2f9579321165ec17 (diff) |
refactor: move definition of Deno.build from "runtime" to "core" (#18036)
We use information about build in several extension crates like
"ext/node" or "runtime/". In an effort to move "fs" APIs to a separate
crate it is a prerequisite to have this information available outside
of the "runtime/" crate.
This commit moves definition of "build" object to "Deno.core" that is
later forwarded to "Deno.build".
Diffstat (limited to 'runtime/js/30_fs.js')
-rw-r--r-- | runtime/js/30_fs.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/js/30_fs.js b/runtime/js/30_fs.js index a7936085e..fc0bbdca5 100644 --- a/runtime/js/30_fs.js +++ b/runtime/js/30_fs.js @@ -25,7 +25,6 @@ import { writableStreamForRid, } from "internal:deno_web/06_streams.js"; import { pathFromURL } from "internal:runtime/06_util.js"; -import { build } from "internal:runtime/01_build.js"; function chmodSync(path, mode) { ops.op_chmod_sync(pathFromURL(path), mode); @@ -272,7 +271,7 @@ const { 0: statStruct, 1: statBuf } = createByteStruct({ }); function parseFileInfo(response) { - const unix = build.os === "darwin" || build.os === "linux"; + const unix = core.build.os === "darwin" || core.build.os === "linux"; return { isFile: response.isFile, isDirectory: response.isDirectory, |