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/js/10_permissions.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'runtime/js') diff --git a/runtime/js/10_permissions.js b/runtime/js/10_permissions.js index f2b3fba00..ff5abc01d 100644 --- a/runtime/js/10_permissions.js +++ b/runtime/js/10_permissions.js @@ -37,7 +37,7 @@ const illegalConstructorKey = Symbol("illegalConstructorKey"); * @property {boolean} partial */ -/** @type {ReadonlyArray<"read" | "write" | "net" | "env" | "sys" | "run" | "ffi" | "hrtime">} */ +/** @type {ReadonlyArray<"read" | "write" | "net" | "env" | "sys" | "run" | "ffi">} */ const permissionNames = [ "read", "write", @@ -46,7 +46,6 @@ const permissionNames = [ "sys", "run", "ffi", - "hrtime", ]; /** @@ -282,7 +281,7 @@ function serializePermissions(permissions) { } } for ( - const key of new SafeArrayIterator(["env", "hrtime", "net", "sys"]) + const key of new SafeArrayIterator(["env", "net", "sys"]) ) { if (ArrayIsArray(permissions[key])) { serializedPermissions[key] = ArrayPrototypeSlice(permissions[key]); -- cgit v1.2.3