summaryrefslogtreecommitdiff
path: root/cli/tests/039_worker_deno_ns.ts
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-01-21 09:49:47 +0100
committerGitHub <noreply@github.com>2020-01-21 09:49:47 +0100
commit7966bf14c062a05b1606a62c996890571454ecc8 (patch)
tree65bede64b47707c3accc80d0bb18e99840c639f7 /cli/tests/039_worker_deno_ns.ts
parentc90036ab88bb1ae6b9c87d5e368f56d8c8afab69 (diff)
refactor: split worker and worker host logic (#3722)
* split ops/worker.rs into ops/worker_host.rs and ops/web_worker.rs * refactor js/workers.ts and factor out js/worker_main.ts - entry point for WebWorker runtime * BREAKING CHANGE: remove support for blob: URL in Worker * BREAKING CHANGE: remove Deno namespace support and noDenoNamespace option in Worker constructor * introduce WebWorker struct which is a stripped down version of cli::Worker
Diffstat (limited to 'cli/tests/039_worker_deno_ns.ts')
-rw-r--r--cli/tests/039_worker_deno_ns.ts6
1 files changed, 2 insertions, 4 deletions
diff --git a/cli/tests/039_worker_deno_ns.ts b/cli/tests/039_worker_deno_ns.ts
index 80ada4343..7cb7de7fb 100644
--- a/cli/tests/039_worker_deno_ns.ts
+++ b/cli/tests/039_worker_deno_ns.ts
@@ -1,7 +1,5 @@
-const w1 = new Worker("./039_worker_deno_ns/has_ns.ts");
-const w2 = new Worker("./039_worker_deno_ns/no_ns.ts", {
- noDenoNamespace: true
-});
+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 => {