summaryrefslogtreecommitdiff
path: root/runtime/ops/runtime.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/runtime.rs')
-rw-r--r--runtime/ops/runtime.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/ops/runtime.rs b/runtime/ops/runtime.rs
index d694cb9c9..d90e92593 100644
--- a/runtime/ops/runtime.rs
+++ b/runtime/ops/runtime.rs
@@ -17,8 +17,8 @@ pub fn init(rt: &mut deno_core::JsRuntime, main_module: ModuleSpecifier) {
let mut state = op_state.borrow_mut();
state.put::<ModuleSpecifier>(main_module);
}
- super::reg_json_sync(rt, "op_main_module", op_main_module);
- super::reg_json_sync(rt, "op_metrics", op_metrics);
+ super::reg_sync(rt, "op_main_module", op_main_module);
+ super::reg_sync(rt, "op_metrics", op_metrics);
}
fn op_main_module(