diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-05-07 21:15:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-07 21:15:59 +0200 |
commit | aca21dad1ba576e2e8b81cfa5ac87d58c69f1de6 (patch) | |
tree | 15b657060b27cf48a9d4dc15fd3dd1464dd76a9d /cli/tests/039_worker_deno_ns.ts | |
parent | 2b66b8a03e4f81cc158be40d07534f26fa762c2b (diff) |
BREAKING: make Worker.deno unstable (#5128)
This commit makes "Worker.deno" option unstable.
Added new manual entry "docs/runtime/workers.md".
Removed stale workers tests.
Diffstat (limited to 'cli/tests/039_worker_deno_ns.ts')
-rw-r--r-- | cli/tests/039_worker_deno_ns.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/cli/tests/039_worker_deno_ns.ts b/cli/tests/039_worker_deno_ns.ts deleted file mode 100644 index 7cb7de7fb..000000000 --- a/cli/tests/039_worker_deno_ns.ts +++ /dev/null @@ -1,23 +0,0 @@ -const w1 = new Worker("./039_worker_deno_ns/has_ns.ts", { type: "module" }); -const w2 = new Worker("./039_worker_deno_ns/no_ns.ts", { type: "module" }); -let w1MsgCount = 0; -let w2MsgCount = 0; -w1.onmessage = (msg): void => { - console.log(msg.data); - w1MsgCount++; - if (w1MsgCount === 1) { - w1.postMessage("CONTINUE"); - } else { - w2.postMessage("START"); - } -}; -w2.onmessage = (msg): void => { - console.log(msg.data); - w2MsgCount++; - if (w2MsgCount === 1) { - w2.postMessage("CONTINUE"); - } else { - Deno.exit(0); - } -}; -w1.postMessage("START"); |