deno/cli/tests/error_024_stack_promise_all.ts
Nayeem Rahman 0ea6eb83a9
refactor(core/js_error): Align JSStackFrame with CallSite (#4715)
Renames and adds missing fields to JSStackFrame from CallSite. Fixes #4705.

Cleans up base changes for line and column numbers.
2020-04-13 10:54:16 -04:00

14 lines
217 B
TypeScript

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;
}