Skip to content

Commit 36fd97c

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

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
@@ -1295,7 +1295,7 @@ function getFunctionBase(ctx, value, constructor, tag) {
12951295
if (constructor !== type && constructor !== null) {
12961296
base += ` ${constructor}`;
12971297
}
1298-
if (tag !== '' && (constructor === null || !constructor.includes(tag))) {
1298+
if (tag !== '' && constructor !== tag) {
12991299
base += ` [${tag}]`;
13001300
}
13011301
return base;

0 commit comments

Comments
 (0)