mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Uses `AggregateError` if there are more than one error with the message of the outer error to preserve the current behaviour, or returns the logical OR comparison of the two parameters. PR-URL: https://github.com/nodejs/node/pull/37460 Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com>
14 lines
595 B
Plaintext
14 lines
595 B
Plaintext
*error_aggregateTwoErrors.js:*
|
|
throw aggregateTwoErrors(err, originalError);
|
|
^
|
|
AggregateError: original
|
|
at Object.<anonymous> (*test*message*error_aggregateTwoErrors.js:*:*)
|
|
at Module._compile (node:internal/modules/cjs/loader:*:*)
|
|
at Object.Module._extensions..js (node:internal/modules/cjs/loader:*:*)
|
|
at Module.load (node:internal/modules/cjs/loader:*:*)
|
|
at Function.Module._load (node:internal/modules/cjs/loader:*:*)
|
|
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:*:*)
|
|
at node:internal/main/run_main_module:*:* {
|
|
code: 'ERR0'
|
|
}
|