summaryrefslogtreecommitdiff
path: root/runtime/ops/io.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/io.rs')
-rw-r--r--runtime/ops/io.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ops/io.rs b/runtime/ops/io.rs
index 3bee7db60..43016395e 100644
--- a/runtime/ops/io.rs
+++ b/runtime/ops/io.rs
@@ -76,7 +76,7 @@ pub static STDERR_HANDLE: Lazy<StdFile> = Lazy::new(|| {
});
pub fn init() -> Extension {
- Extension::builder()
+ Extension::builder("deno_io")
.ops(vec![op_read_sync::decl(), op_write_sync::decl()])
.build()
}
@@ -114,7 +114,7 @@ pub fn init_stdio(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()
+ Extension::builder("deno_stdio")
.middleware(|op| match op.name {
"op_print" => op_print::decl(),
_ => op,