summaryrefslogtreecommitdiff
path: root/runtime/js/11_workers.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/11_workers.js')
-rw-r--r--runtime/js/11_workers.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/js/11_workers.js b/runtime/js/11_workers.js
index 5be14d461..c78eee833 100644
--- a/runtime/js/11_workers.js
+++ b/runtime/js/11_workers.js
@@ -143,10 +143,10 @@
} = options;
// TODO(Soremwar)
- // `deno: true` is kept for backwards compatibility with the previous worker
- // options implementation. Remove for 2.0
+ // `deno: boolean` is kept for backwards compatibility with the previous
+ // worker options implementation. Remove for 2.0
let workerDenoAttributes;
- if (deno === true) {
+ if (typeof deno == "boolean") {
workerDenoAttributes = {
// Change this to enable the Deno namespace by default
namespace: deno,