deno/cli/tests/testdata/delayed_error.ts

2 lines
70 B
TypeScript

await new Promise((r) => setTimeout(r, 100));
throw new Error("foo");