summaryrefslogtreecommitdiff
path: root/tests/specs/run/aggregate_error/aggregate_error.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/specs/run/aggregate_error/aggregate_error.ts')
-rw-r--r--tests/specs/run/aggregate_error/aggregate_error.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/specs/run/aggregate_error/aggregate_error.ts b/tests/specs/run/aggregate_error/aggregate_error.ts
new file mode 100644
index 000000000..ce4b54376
--- /dev/null
+++ b/tests/specs/run/aggregate_error/aggregate_error.ts
@@ -0,0 +1,9 @@
+const aggregateError = new AggregateError([
+ new Error("Error message 1."),
+ new Error("Error message 2."),
+], "Multiple errors.");
+console.log(aggregateError.stack);
+console.log();
+console.log(aggregateError);
+console.log();
+throw aggregateError;