mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(unstable/worker): ensure import permissions are passed (#26101)
We only had integration tests for this and not an integration test. Closes #26074
This commit is contained in:
parent
06aadcd22b
commit
66929de3ba
6 changed files with 47 additions and 1 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue