mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
a87be28a46
This commit adds "aggregated" field to "deno_core::JsError" that stores instances of "JsError" recursively to properly handle "AggregateError" formatting. Appropriate logics was added to "PrettyJsError" and "console" API to format AggregateErrors. Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
10 lines
315 B
Text
10 lines
315 B
Text
[WILDCARD]
|
|
error: Uncaught Error: bar
|
|
const y = new Error("bar", { cause: x });
|
|
^
|
|
at file:///[WILDCARD]/error_cause_recursive.ts:2:11
|
|
Caused by: Error: foo
|
|
at file:///[WILDCARD]/error_cause_recursive.ts:1:11
|
|
Caused by: Error: bar
|
|
at file:///[WILDCARD]/error_cause_recursive.ts:2:11
|
|
[WILDCARD]
|