Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2021-03-04 19:46:40 +0300
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2021-03-19 14:43:03 +0300
commit104dac79ccd0014549374fba5f0bcbb18353bd83 (patch)
tree1b307c0d1ef6d8d73dc8f94c7adccd2c94db6d42 /tools
parent0ddd75bcd816a8e5f4e27411b8e913abb92c2ed5 (diff)
lib: aggregate errors to avoid error swallowing
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>
Diffstat (limited to 'tools')
-rw-r--r--tools/doc/type-parser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/doc/type-parser.js b/tools/doc/type-parser.js
index c5362867959..0fc19c5c32c 100644
--- a/tools/doc/type-parser.js
+++ b/tools/doc/type-parser.js
@@ -15,7 +15,7 @@ const jsPrimitives = {
const jsGlobalObjectsUrl = `${jsDocPrefix}Reference/Global_Objects/`;
const jsGlobalTypes = [
- 'Array', 'ArrayBuffer', 'DataView', 'Date', 'Error',
+ 'AggregateError', 'Array', 'ArrayBuffer', 'DataView', 'Date', 'Error',
'EvalError', 'Function', 'Map', 'Object', 'Promise', 'RangeError',
'ReferenceError', 'RegExp', 'Set', 'SharedArrayBuffer', 'SyntaxError',
'TypeError', 'TypedArray', 'URIError', 'Uint8Array',