1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 23:34:47 -05:00
denoland-deno/cli/tests/testdata/no_prompt.ts

11 lines
179 B
TypeScript
Raw Normal View History

new Worker("data:,setTimeout(() => Deno.exit(2), 200)", {
type: "module",
deno: { namespace: true },
});
try {
await Deno.run({ cmd: ["ps"] });
} catch {
Deno.exit(0);
}