summaryrefslogtreecommitdiff
path: root/cli/tests/error_024_stack_promise_all.ts
diff options
context:
space:
mode:
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;
+}