From efd7e78af3fc086dfdec51738905665d38d08eb4 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Mon, 28 Oct 2019 00:22:53 +0900 Subject: Use web standard Permissions API (#3200) --- cli/ops/timers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/ops/timers.rs') diff --git a/cli/ops/timers.rs b/cli/ops/timers.rs index f366797b4..9d87aaf5c 100644 --- a/cli/ops/timers.rs +++ b/cli/ops/timers.rs @@ -70,7 +70,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 !state.permissions.allows_hrtime() { + if !state.permissions.allow_hrtime.is_allow() { subsec_nanos -= subsec_nanos % reduced_time_precision } -- cgit v1.2.3