mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 23:34:47 -05: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);
|
|
}
|