From 2952fb5405eabbb9e603e90fe2e972e9bddfcadd Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 23 May 2019 19:28:29 +0300 Subject: Rename --allow-high-precision to --allow-hrtime (#2398) --- cli/ops.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/ops.rs') diff --git a/cli/ops.rs b/cli/ops.rs index 9b5bc0079..bd1132fa3 100644 --- a/cli/ops.rs +++ b/cli/ops.rs @@ -261,7 +261,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_high_precision() { + if !state.permissions.allows_hrtime() { subsec_nanos -= subsec_nanos % reduced_time_precision } @@ -640,7 +640,7 @@ fn op_permissions( write: state.permissions.allows_write(), net: state.permissions.allows_net(), env: state.permissions.allows_env(), - high_precision: state.permissions.allows_high_precision(), + hrtime: state.permissions.allows_hrtime(), }, ); ok_future(serialize_response( @@ -668,7 +668,7 @@ fn op_revoke_permission( "write" => state.permissions.revoke_write(), "net" => state.permissions.revoke_net(), "env" => state.permissions.revoke_env(), - "highPrecision" => state.permissions.revoke_high_precision(), + "hrtime" => state.permissions.revoke_hrtime(), _ => Ok(()), }; if let Err(e) = result { -- cgit v1.2.3