mirror of
https://github.com/denoland/deno.git
synced 2024-12-27 01:29:14 -05:00
11 lines
227 B
JavaScript
11 lines
227 B
JavaScript
|
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;
|