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 --- tests/testdata/test/allow_all.out | 6 ++---- tests/testdata/test/allow_all.ts | 1 - tests/testdata/test/allow_none.out | 10 ++-------- tests/testdata/test/allow_none.ts | 1 - tests/testdata/test/ignore_permissions.ts | 1 - 5 files changed, 4 insertions(+), 15 deletions(-) (limited to 'tests/testdata/test') diff --git a/tests/testdata/test/allow_all.out b/tests/testdata/test/allow_all.out index 8b783b823..b3bf5275f 100644 --- a/tests/testdata/test/allow_all.out +++ b/tests/testdata/test/allow_all.out @@ -1,5 +1,5 @@ [WILDCARD] -running 14 tests from [WILDCARD] +running 12 tests from [WILDCARD] read false ... ok [WILDCARD] read true ... ok [WILDCARD] write false ... ok [WILDCARD] @@ -12,7 +12,5 @@ run false ... ok [WILDCARD] run true ... ok [WILDCARD] ffi false ... ok [WILDCARD] ffi true ... ok [WILDCARD] -hrtime false ... ok [WILDCARD] -hrtime true ... ok [WILDCARD] -ok | 14 passed | 0 failed [WILDCARD] +ok | 12 passed | 0 failed [WILDCARD] diff --git a/tests/testdata/test/allow_all.ts b/tests/testdata/test/allow_all.ts index 01341d9e5..7faa58c61 100644 --- a/tests/testdata/test/allow_all.ts +++ b/tests/testdata/test/allow_all.ts @@ -7,7 +7,6 @@ const permissions: Deno.PermissionName[] = [ "env", "run", "ffi", - "hrtime", ]; for (const name of permissions) { diff --git a/tests/testdata/test/allow_none.out b/tests/testdata/test/allow_none.out index aaa467344..aaea9aea3 100644 --- a/tests/testdata/test/allow_none.out +++ b/tests/testdata/test/allow_none.out @@ -1,12 +1,11 @@ [WILDCARD] -running 7 tests from [WILDCARD] +running 6 tests from [WILDCARD] read ... FAILED [WILDCARD] write ... FAILED [WILDCARD] net ... FAILED [WILDCARD] env ... FAILED [WILDCARD] run ... FAILED [WILDCARD] ffi ... FAILED [WILDCARD] -hrtime ... FAILED [WILDCARD] ERRORS @@ -32,10 +31,6 @@ error: PermissionDenied: Can't escalate parent thread permissions ffi => ./test/allow_none.ts:[WILDCARD] error: PermissionDenied: Can't escalate parent thread permissions -[WILDCARD] - -hrtime => ./test/allow_none.ts:[WILDCARD] -error: PermissionDenied: Can't escalate parent thread permissions [WILDCARD] FAILURES @@ -46,6 +41,5 @@ net => ./test/allow_none.ts:[WILDCARD] env => ./test/allow_none.ts:[WILDCARD] run => ./test/allow_none.ts:[WILDCARD] ffi => ./test/allow_none.ts:[WILDCARD] -hrtime => ./test/allow_none.ts:[WILDCARD] -FAILED | 0 passed | 7 failed [WILDCARD] +FAILED | 0 passed | 6 failed [WILDCARD] diff --git a/tests/testdata/test/allow_none.ts b/tests/testdata/test/allow_none.ts index 17a6f4014..e59a30c4d 100644 --- a/tests/testdata/test/allow_none.ts +++ b/tests/testdata/test/allow_none.ts @@ -7,7 +7,6 @@ const permissions: Deno.PermissionName[] = [ "env", "run", "ffi", - "hrtime", ]; for (const name of permissions) { diff --git a/tests/testdata/test/ignore_permissions.ts b/tests/testdata/test/ignore_permissions.ts index ff3084441..e9ade6dfe 100644 --- a/tests/testdata/test/ignore_permissions.ts +++ b/tests/testdata/test/ignore_permissions.ts @@ -7,7 +7,6 @@ Deno.test({ env: true, run: true, ffi: true, - hrtime: true, }, ignore: true, fn() { -- cgit v1.2.3