summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/worker_drop_handle_race_terminate.js
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-05-17 21:27:17 +0100
committerGitHub <noreply@github.com>2022-05-17 22:27:17 +0200
commit330c820ae8d7826dfe3d88c01ba07728121fa021 (patch)
treea5c0216f5cba4ea503e9cba3b0abdd8d4290c123 /cli/tests/testdata/worker_drop_handle_race_terminate.js
parentf57aac77ff9ce514730504066daca0a61a959d32 (diff)
BREAKING(unstable): Enable Deno namespace in workers by default (#14581)
This commit removes "WorkerOptions.deno" option as a boolean, as well as "WorkerOptions.deno.namespace" settings. Starting with this commit all workers have access to "Deno" namespace by default.
Diffstat (limited to 'cli/tests/testdata/worker_drop_handle_race_terminate.js')
-rw-r--r--cli/tests/testdata/worker_drop_handle_race_terminate.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/cli/tests/testdata/worker_drop_handle_race_terminate.js b/cli/tests/testdata/worker_drop_handle_race_terminate.js
index dfdd9c561..fc9a4e6b2 100644
--- a/cli/tests/testdata/worker_drop_handle_race_terminate.js
+++ b/cli/tests/testdata/worker_drop_handle_race_terminate.js
@@ -22,10 +22,7 @@ const WORKER2 = getCodeBlobUrl(`
const WORKER1 = getCodeBlobUrl(`
console.log("Worker 1");
- const worker = new Worker(
- ${JSON.stringify(WORKER2)},
- { type: "module", deno: { namespace: true } }
- );
+ const worker = new Worker(${JSON.stringify(WORKER2)}, { type: "module" });
worker.addEventListener("message", () => {
console.log("Terminating");
@@ -34,7 +31,7 @@ const WORKER1 = getCodeBlobUrl(`
});
`);
-new Worker(WORKER1, { type: "module", deno: { namespace: true } });
+new Worker(WORKER1, { type: "module" });
// Don't kill the process before worker 2 is finished.
setTimeout(() => {}, 3000);