mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
66fbdd2ed4
This commit adds support for "DENO_NO_PROMPT" env variable, that can be used instead of "--no-prompt" flag to completely disable permission prompts.
10 lines
179 B
TypeScript
10 lines
179 B
TypeScript
new Worker("data:,setTimeout(() => Deno.exit(2), 200)", {
|
|
type: "module",
|
|
deno: { namespace: true },
|
|
});
|
|
|
|
try {
|
|
await Deno.run({ cmd: ["ps"] });
|
|
} catch {
|
|
Deno.exit(0);
|
|
}
|