summaryrefslogtreecommitdiff
path: root/cli/tests/error_024_stack_promise_all.ts
blob: ddaf0dbaabb7a0c5a5d6cf5cd6ea6089c63c6d14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
}