diff options
| author | Aaron O'Mullan <aaron.omullan@gmail.com> | 2021-04-12 21:55:05 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-12 15:55:05 -0400 |
| commit | 46b1c653c0c433932908b7610f60b409af134c76 (patch) | |
| tree | 00d8b59c8c4e9b90538d548ebd828d2b3f94d4fd /runtime/ops/timers.rs | |
| parent | a20504642d083172f297543f9788b128e9c2e0bc (diff) | |
refactor(deno): remove concept of bin & json ops (#10145)
Diffstat (limited to 'runtime/ops/timers.rs')
| -rw-r--r-- | runtime/ops/timers.rs | 10 |
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)] |
