summaryrefslogtreecommitdiff
path: root/cli/tests/error_024_stack_promise_all.ts
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-04-13 15:54:16 +0100
committerGitHub <noreply@github.com>2020-04-13 10:54:16 -0400
commit0ea6eb83a906bff543be4c3301f23444986b022b (patch)
tree923e5b1c7608839c9a7be545f8973ae751ee7e73 /cli/tests/error_024_stack_promise_all.ts
parent5105c6839904f35351481137160459fdc2edadd2 (diff)
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.
Diffstat (limited to 'cli/tests/error_024_stack_promise_all.ts')
-rw-r--r--cli/tests/error_024_stack_promise_all.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/error_024_stack_promise_all.ts b/cli/tests/error_024_stack_promise_all.ts
new file mode 100644
index 000000000..5334e8d77
--- /dev/null
+++ b/cli/tests/error_024_stack_promise_all.ts
@@ -0,0 +1,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;
+}