Skip to content

Commit 6fa46c4

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

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
@@ -1554,7 +1554,7 @@ function getFunctionBase(ctx, value, constructor, tag) {
15541554
if (constructor !== type && constructor !== null) {
15551555
base += ` ${constructor}`;
15561556
}
1557-
if (tag !== '' && (constructor === null || !constructor.includes(tag))) {
1557+
if (tag !== '' && constructor !== tag) {
15581558
base += ` [${tag}]`;
15591559
}
15601560
return base;

0 commit comments

Comments
 (0)