summaryrefslogtreecommitdiff
path: root/runtime/ops/runtime.rs
diff options
context:
space:
mode:
authorLeo Kettmeir <crowlkats@toaxl.com>2023-01-08 23:48:46 +0100
committerGitHub <noreply@github.com>2023-01-08 23:48:46 +0100
commitc41d4ff90e09b63bd1894052352a5acba57b1704 (patch)
tree52be95551ed263c2f4831aaefc78bb6fdda6d89c /runtime/ops/runtime.rs
parent2be1282be42369e558cc77f75b22488ce7a8215e (diff)
feat(core): allow specifying name and dependencies of an Extension (#17301)
Diffstat (limited to 'runtime/ops/runtime.rs')
-rw-r--r--runtime/ops/runtime.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ops/runtime.rs b/runtime/ops/runtime.rs
index 52dc3f745..b97741acc 100644
--- a/runtime/ops/runtime.rs
+++ b/runtime/ops/runtime.rs
@@ -9,7 +9,7 @@ use deno_core::ModuleSpecifier;
use deno_core::OpState;
pub fn init(main_module: ModuleSpecifier) -> Extension {
- Extension::builder()
+ Extension::builder("deno_runtime")
.ops(vec![op_main_module::decl()])
.state(move |state| {
state.put::<ModuleSpecifier>(main_module.clone());