diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index 375a0091209161..691e4d71c99a0e 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -1,6 +1,8 @@ 'use strict'; const { + AggregateError, + AggregateErrorPrototype, Array, ArrayBuffer, ArrayBufferPrototype, @@ -74,6 +76,8 @@ const { ObjectSetPrototypeOf, Promise, PromisePrototype, + RangeError, + RangeErrorPrototype, ReflectApply, ReflectOwnKeys, RegExp, @@ -114,6 +118,8 @@ const { SymbolPrototypeValueOf, SymbolToPrimitive, SymbolToStringTag, + TypeError, + TypeErrorPrototype, TypedArray, TypedArrayPrototype, TypedArrayPrototypeGetLength, @@ -636,7 +642,12 @@ const wellKnownPrototypes = new SafeMap() .set(RegExpPrototype, { name: 'RegExp', constructor: RegExp }) .set(DatePrototype, { name: 'Date', constructor: Date }) .set(DataViewPrototype, { name: 'DataView', constructor: DataView }) + .set(ErrorPrototype, { name: 'Error', constructor: Error }) + .set(AggregateErrorPrototype, { name: 'AggregateError', constructor: AggregateError }) + .set(RangeErrorPrototype, { name: 'RangeError', constructor: RangeError }) + .set(TypeErrorPrototype, { name: 'TypeError', constructor: TypeError }) + .set(BooleanPrototype, { name: 'Boolean', constructor: Boolean }) .set(NumberPrototype, { name: 'Number', constructor: Number }) .set(StringPrototype, { name: 'String', constructor: String })