diff options
author | Luca Casonato <hello@lcas.dev> | 2024-09-03 11:24:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 11:24:25 +0200 |
commit | 5cf97f539bb0c3d2bda918f53cd4a976c03b37e3 (patch) | |
tree | 82f05b270b3df52609e3d0d6c86a768d1399e257 /runtime/ops | |
parent | b5695d02df75719bca0df1aae0622b22761b1533 (diff) |
BREAKING(permissions): remove --allow-hrtime (#25367)
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 <biwanczuk@gmail.com>
Diffstat (limited to 'runtime/ops')
-rw-r--r-- | runtime/ops/permissions.rs | 3 |
1 files changed, 0 insertions, 3 deletions
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", |