summaryrefslogtreecommitdiff
path: root/ext/io/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-03-09 08:10:54 -0400
committerGitHub <noreply@github.com>2023-03-09 12:10:54 +0000
commitc3cba7f22c49ca3a3f58df44d8ea4c85d8510bff (patch)
treec710275a5c51b8a4c8175a3ebe92c928272bf3dc /ext/io/lib.rs
parent521cb4ca9b9b02f7ba3150338d5f3c4b035aab8d (diff)
refactor(core): Extension::builder_with_deps (#18093)
Prerequisite for https://github.com/denoland/deno/pull/18080
Diffstat (limited to 'ext/io/lib.rs')
-rw-r--r--ext/io/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/io/lib.rs b/ext/io/lib.rs
index 84d9d34a6..8eebc93ae 100644
--- a/ext/io/lib.rs
+++ b/ext/io/lib.rs
@@ -82,9 +82,8 @@ pub fn init(stdio: Stdio) -> Extension {
// todo(dsheret): don't do this? Taking out the writers was necessary to prevent invalid handle panics
let stdio = Rc::new(RefCell::new(Some(stdio)));
- Extension::builder("deno_io")
+ Extension::builder_with_deps("deno_io", &["deno_web"])
.ops(vec![op_read_sync::decl(), op_write_sync::decl()])
- .dependencies(vec!["deno_web"])
.esm(include_js_files!("12_io.js",))
.middleware(|op| match op.name {
"op_print" => op_print::decl(),