mirror of
https://github.com/denoland/deno.git
synced 2025-02-22 05:12:55 -05:00

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({});
|