1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-28 10:09:20 -05:00
denoland-deno/cli/tests/testdata/unstable_worker.ts
Nayeem Rahman 330c820ae8
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.
2022-05-17 22:27:17 +02:00

6 lines
155 B
TypeScript

const w = new Worker(
new URL("workers/worker_unstable.ts", import.meta.url).href,
{ type: "module", name: "Unstable Worker" },
);
w.postMessage({});