mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -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;
|