diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-04 23:37:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-05 03:37:37 +0000 |
commit | 888ceac7fdc6e9b96d860f183dd2f31df3f3d601 (patch) | |
tree | d56e78c736ca50ebf6d091e2804c4e468326befb /cli/build.rs | |
parent | 17574f1ef7adf4aea91ba497759ac3e3fed50f1a (diff) |
refactor(runtime): remove 40_files.js, 40_write_file.js and 40_read_file.js (#18018)
JavaScript APIs from "runtime/js/40_files.js" combined abstractions
for stdio streams ("Stdout", "Stderr", "Stdin") and file system file
("File", "FsFile"). APIs from "runtime/js/40_read_file.js" and
"runtime/js/40_write_file.js" were implemented using ops from
"runtime/ops/fs.rs".
This file was removed and relevant APIs were moved to "deno_io/12_io.js"
and "runtime/js/30_fs.js".
This work is meant to enable factoring out "deno_fs" crate.
Diffstat (limited to 'cli/build.rs')
-rw-r--r-- | cli/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/build.rs b/cli/build.rs index c737c1f6d..3baafb522 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -342,6 +342,7 @@ fn create_cli_snapshot(snapshot_path: PathBuf) { deno_broadcast_channel::InMemoryBroadcastChannel::default(), false, // No --unstable. ), + deno_io::init(Default::default()), deno_node::init::<PermissionsContainer>(None), // No --unstable. deno_node::init_polyfill(), deno_ffi::init::<PermissionsContainer>(false), @@ -351,7 +352,6 @@ fn create_cli_snapshot(snapshot_path: PathBuf) { ), deno_napi::init::<PermissionsContainer>(), deno_http::init(), - deno_io::init(Default::default()), deno_flash::init::<PermissionsContainer>(false), // No --unstable ]; |