summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2021-01-29 13:15:59 +0000
committerGitHub <noreply@github.com>2021-01-29 08:15:59 -0500
commitdaad575825ab82f1147d48c0e0e8963d5d29e879 (patch)
tree21e14ac7d146e3a839ced7b66e8bd09570e48606 /runtime/js
parentf3122442db70d16f4861f39edf32d89ac2530aa2 (diff)
fix(cli): Move WorkerOptions::deno types to unstable (#9163)
Diffstat (limited to 'runtime/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,