summaryrefslogtreecommitdiff
path: root/tests/testdata/run/error_with_errors_prop.js
blob: d1c6bbfaae6c178e5dcb84f26309419cb5b2bd8c (plain)
1
2
3
4
5
6
7
8
9
10
const error = new Error("Error with errors prop.");
error.errors = [
  new Error("Error message 1."),
  new Error("Error message 2."),
];
console.log(error.stack);
console.log();
console.log(error);
console.log();
throw error;