summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2024-09-03 11:24:25 +0200
committerGitHub <noreply@github.com>2024-09-03 11:24:25 +0200
commit5cf97f539bb0c3d2bda918f53cd4a976c03b37e3 (patch)
tree82f05b270b3df52609e3d0d6c86a768d1399e257 /runtime/js
parentb5695d02df75719bca0df1aae0622b22761b1533 (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/js')
-rw-r--r--runtime/js/10_permissions.js5
1 files changed, 2 insertions, 3 deletions
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]);