1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-15 20:08:08 -05:00
denoland-deno/cli/tests/error_024_stack_promise_all.ts

14 lines
238 B
TypeScript

const p = Promise.all([
Promise.resolve(),
(async (): Promise<never> => {
await Promise.resolve();
throw new Error("Promise.all()");
})(),
]);
try {
await p;
} catch (error) {
console.log(error.stack);
throw error;
}