summaryrefslogtreecommitdiff
path: root/runtime/ops/timers.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ops/timers.rs')
-rw-r--r--runtime/ops/timers.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/ops/timers.rs b/runtime/ops/timers.rs
index aee38cf8d..8e709440e 100644
--- a/runtime/ops/timers.rs
+++ b/runtime/ops/timers.rs
@@ -69,11 +69,11 @@ pub fn init(rt: &mut deno_core::JsRuntime) {
state.put::<GlobalTimer>(GlobalTimer::default());
state.put::<StartTime>(StartTime::now());
}
- super::reg_json_sync(rt, "op_global_timer_stop", op_global_timer_stop);
- super::reg_json_sync(rt, "op_global_timer_start", op_global_timer_start);
- super::reg_json_async(rt, "op_global_timer", op_global_timer);
- super::reg_json_sync(rt, "op_now", op_now);
- super::reg_json_sync(rt, "op_sleep_sync", op_sleep_sync);
+ super::reg_sync(rt, "op_global_timer_stop", op_global_timer_stop);
+ super::reg_sync(rt, "op_global_timer_start", op_global_timer_start);
+ super::reg_async(rt, "op_global_timer", op_global_timer);
+ super::reg_sync(rt, "op_now", op_now);
+ super::reg_sync(rt, "op_sleep_sync", op_sleep_sync);
}
#[allow(clippy::unnecessary_wraps)]