From 5cf97f539bb0c3d2bda918f53cd4a976c03b37e3 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 3 Sep 2024 11:24:25 +0200 Subject: BREAKING(permissions): remove --allow-hrtime (#25367) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove `--allow-hrtime` and `--deny-hrtime`. We are doing this because it is already possible to get access to high resolution timers through workers and SharedArrayBuffer. Co-authored-by: Bartek IwaƄczuk --- runtime/ops/permissions.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'runtime/ops') diff --git a/runtime/ops/permissions.rs b/runtime/ops/permissions.rs index c15e7d013..9ac9205e9 100644 --- a/runtime/ops/permissions.rs +++ b/runtime/ops/permissions.rs @@ -73,7 +73,6 @@ pub fn op_query_permission( .query(args.kind.as_deref().map(parse_sys_kind).transpose()?), "run" => permissions.run.query(args.command.as_deref()), "ffi" => permissions.ffi.query(args.path.as_deref().map(Path::new)), - "hrtime" => permissions.hrtime.query(), n => { return Err(custom_error( "ReferenceError", @@ -108,7 +107,6 @@ pub fn op_revoke_permission( .revoke(args.kind.as_deref().map(parse_sys_kind).transpose()?), "run" => permissions.run.revoke(args.command.as_deref()), "ffi" => permissions.ffi.revoke(args.path.as_deref().map(Path::new)), - "hrtime" => permissions.hrtime.revoke(), n => { return Err(custom_error( "ReferenceError", @@ -143,7 +141,6 @@ pub fn op_request_permission( .request(args.kind.as_deref().map(parse_sys_kind).transpose()?), "run" => permissions.run.request(args.command.as_deref()), "ffi" => permissions.ffi.request(args.path.as_deref().map(Path::new)), - "hrtime" => permissions.hrtime.request(), n => { return Err(custom_error( "ReferenceError", -- cgit v1.2.3