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.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/ops/timers.rs b/runtime/ops/timers.rs
index 428d4ecea..aee38cf8d 100644
--- a/runtime/ops/timers.rs
+++ b/runtime/ops/timers.rs
@@ -140,7 +140,7 @@ fn op_now(
// If the permission is not enabled
// Round the nano result on 2 milliseconds
// see: https://developer.mozilla.org/en-US/docs/Web/API/DOMHighResTimeStamp#Reduced_time_precision
- if op_state.borrow::<Permissions>().hrtime.check().is_err() {
+ if op_state.borrow_mut::<Permissions>().hrtime.check().is_err() {
subsec_nanos -= subsec_nanos % reduced_time_precision;
}