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 --- ext/web/timers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/web') diff --git a/ext/web/timers.rs b/ext/web/timers.rs index 648be5715..a9ab7c97e 100644 --- a/ext/web/timers.rs +++ b/ext/web/timers.rs @@ -13,7 +13,7 @@ pub trait TimersPermission { impl TimersPermission for deno_permissions::PermissionsContainer { #[inline(always)] fn allow_hrtime(&mut self) -> bool { - deno_permissions::PermissionsContainer::allow_hrtime(self) + true } } -- cgit v1.2.3