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.
7 lines
147 B
TypeScript
7 lines
147 B
TypeScript
new Worker("data:,setTimeout(() => Deno.exit(2), 200)", { type: "module" });
|
|
|
|
try {
|
|
await Deno.run({ cmd: ["ps"] });
|
|
} catch {
|
|
Deno.exit(0);
|
|
}
|