mirror of
https://github.com/denoland/deno.git
synced 2024-12-12 18:42:18 -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;
|