mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -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({});
|