Skip to content

Commit 0e8162f

Browse files
committed
fixup! review suggestion
1 parent 3f67f99 commit 0e8162f

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

lib/internal/util/inspect.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ const {
117117
StringPrototypeToLowerCase,
118118
StringPrototypeTrim,
119119
StringPrototypeValueOf,
120+
// TODO for when Node supports SuppressedError
120121
// SuppressedError,
121122
// SuppressedErrorPrototype,
122123
SymbolIterator,
@@ -658,6 +659,7 @@ const wellKnownPrototypes = new SafeMap()
658659
.set(EvalErrorPrototype, { name: 'EvalError', constructor: EvalError })
659660
.set(RangeErrorPrototype, { name: 'RangeError', constructor: RangeError })
660661
.set(ReferenceErrorPrototype, { name: 'ReferenceError', constructor: ReferenceError })
662+
// TODO for when Node supports SuppressedError
661663
// .set(SuppressedErrorPrototype, { name: 'SuppressedError', constructor: SuppressedError })
662664
.set(SyntaxErrorPrototype, { name: 'SyntaxError', constructor: SyntaxError })
663665
.set(TypeErrorPrototype, { name: 'TypeError', constructor: TypeError })

typings/primordials.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ declare namespace primordials {
428428
export const StringPrototypeToWellFormed: UncurryThis<typeof String.prototype.toWellFormed>
429429
export const StringPrototypeValueOf: UncurryThis<typeof String.prototype.valueOf>
430430
export const StringPrototypeReplaceAll: UncurryThis<typeof String.prototype.replaceAll>
431+
// TODO for when Node supports SuppressedError
431432
// export import SuppressedError = globalThis.SuppressedError;
432433
// export const SuppressedErrorPrototype: typeof SuppressedError.prototype;
433434
export import Symbol = globalThis.Symbol;

0 commit comments

Comments
 (0)