From daad575825ab82f1147d48c0e0e8963d5d29e879 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Fri, 29 Jan 2021 13:15:59 +0000 Subject: fix(cli): Move WorkerOptions::deno types to unstable (#9163) --- runtime/js/11_workers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime') 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, -- cgit v1.2.3