Skip to content

Commit 6122451

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

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
@@ -1507,7 +1507,7 @@ function getClassBase(value, constructor, tag) {
15071507
if (constructor !== 'Function' && constructor !== null) {
15081508
base += ` [${constructor}]`;
15091509
}
1510-
if (tag !== '' && (constructor === null || !constructor.includes(tag))) {
1510+
if (tag !== '' && constructor !== tag) {
15111511
base += ` [${tag}]`;
15121512
}
15131513
if (constructor !== null) {

0 commit comments

Comments
 (0)