Skip to content

Commit ee28735

Browse files
lib: revert tag exclusion for getClassBase
Co-authored-by: Ruben Bridgewater <[email protected]>
1 parent ad26049 commit ee28735

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/util/inspect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,7 @@ function getClassBase(value, constructor, tag) {
12481248
if (constructor !== 'Function' && constructor !== null) {
12491249
base += ` [${constructor}]`;
12501250
}
1251-
if (tag !== '' && (constructor === null || !constructor.includes(tag))) {
1251+
if (tag !== '' && constructor !== tag) {
12521252
base += ` [${tag}]`;
12531253
}
12541254
if (constructor !== null) {

0 commit comments

Comments
 (0)