summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/error_024_stack_promise_all.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/error_024_stack_promise_all.ts')
-rw-r--r--cli/tests/testdata/error_024_stack_promise_all.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/cli/tests/testdata/error_024_stack_promise_all.ts b/cli/tests/testdata/error_024_stack_promise_all.ts
new file mode 100644
index 000000000..ddaf0dbaa
--- /dev/null
+++ b/cli/tests/testdata/error_024_stack_promise_all.ts
@@ -0,0 +1,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;
+}