diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2024-10-10 14:01:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-10 14:01:42 +0100 |
commit | 66929de3bab098d2b9278cfc4b311c977555721c (patch) | |
tree | e3fe7576d7ad248e6d3797885649d68391bcd352 /runtime/js | |
parent | 06aadcd22bb0f33ffd240e39ff8d39ab286e41b7 (diff) |
fix(unstable/worker): ensure import permissions are passed (#26101)
We only had integration tests for this and not an integration test.
Closes #26074
Diffstat (limited to 'runtime/js')
-rw-r--r-- | runtime/js/10_permissions.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/js/10_permissions.js b/runtime/js/10_permissions.js index ef3135868..831b6bf2a 100644 --- a/runtime/js/10_permissions.js +++ b/runtime/js/10_permissions.js @@ -269,7 +269,13 @@ function serializePermissions(permissions) { if (typeof permissions == "object" && permissions != null) { const serializedPermissions = { __proto__: null }; for ( - const key of new SafeArrayIterator(["read", "write", "run", "ffi"]) + const key of new SafeArrayIterator([ + "read", + "write", + "run", + "ffi", + "import", + ]) ) { if (ArrayIsArray(permissions[key])) { serializedPermissions[key] = ArrayPrototypeMap( |