summaryrefslogtreecommitdiff
path: root/cli/tests/error_024_stack_promise_all.ts
blob: 5334e8d77db0663483df65f2496a30aab2344763 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const p = Promise.all([
  (async (): Promise<never> => {
    await Promise.resolve();
    throw new Error("Promise.all()");
  })(),
]);

try {
  await p;
} catch (error) {
  console.log(error.stack);
  throw error;
}