diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2021-01-07 10:52:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 05:52:30 -0500 |
commit | b5f1d257a3fb816dbf828da3dca0389e6cee2bb0 (patch) | |
tree | 752dc204793d4389bbc4e886b0dbd68e2cc24029 /runtime/js/11_workers.js | |
parent | cb658f5ce588dfac4826a5ce4d343738759c0c84 (diff) |
fix: Use "none" instead of false to sandbox Workers (#9034)
Diffstat (limited to 'runtime/js/11_workers.js')
-rw-r--r-- | runtime/js/11_workers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/11_workers.js b/runtime/js/11_workers.js index db0bbc3c7..4989cd4b5 100644 --- a/runtime/js/11_workers.js +++ b/runtime/js/11_workers.js @@ -152,9 +152,9 @@ : deno?.permissions, }; - // If the permission option is set to false, all permissions + // If the permission option is set to "none", all permissions // must be removed from the worker - if (workerDenoAttributes.permissions === false) { + if (workerDenoAttributes.permissions === "none") { workerDenoAttributes.permissions = { env: false, hrtime: false, |