0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-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

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