mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -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;
|