diff options
Diffstat (limited to 'ext/web')
| -rw-r--r-- | ext/web/02_timers.js | 4 | ||||
| -rw-r--r-- | ext/web/timers.rs | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/ext/web/02_timers.js b/ext/web/02_timers.js index a4ce33a18..1a456f9bb 100644 --- a/ext/web/02_timers.js +++ b/ext/web/02_timers.js @@ -23,9 +23,11 @@ const { webidl } = window.__bootstrap; const { reportException } = window.__bootstrap.event; const { assert } = window.__bootstrap.infra; + // deno-lint-ignore camelcase + const { op_now } = Deno.core.ops; function opNow() { - return core.opSync("op_now"); + return op_now.call(); } // --------------------------------------------------------------------------- diff --git a/ext/web/timers.rs b/ext/web/timers.rs index f57baa559..ebef717ba 100644 --- a/ext/web/timers.rs +++ b/ext/web/timers.rs @@ -28,7 +28,7 @@ pub type StartTime = Instant; // If the High precision flag is not set, the // nanoseconds are rounded on 2ms. #[op] -pub fn op_now<TP>(state: &mut OpState, _argument: ()) -> f64 +pub fn op_now<TP>(state: &mut OpState) -> f64 where TP: TimersPermission + 'static, { |
