mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
330c820ae8
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.
6 lines
155 B
TypeScript
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({});
|