diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2023-01-08 23:48:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 23:48:46 +0100 |
commit | c41d4ff90e09b63bd1894052352a5acba57b1704 (patch) | |
tree | 52be95551ed263c2f4831aaefc78bb6fdda6d89c /runtime/ops/io.rs | |
parent | 2be1282be42369e558cc77f75b22488ce7a8215e (diff) |
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'runtime/ops/io.rs')
-rw-r--r-- | runtime/ops/io.rs | 4 |
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, |