Skip to content

Commit da4f3d2

Browse files
author
Daniel Lemire
committed
fix: correct comparison
1 parent f959730 commit da4f3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/util/comparisons.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ function setEquiv(a, b, strict, memo) {
502502
for (const val of b) {
503503
// Primitive values have already been handled above.
504504
if (typeof val === 'object' && val !== null) {
505-
if (!setHasEqualElement(set, val, strict, memo))
505+
if (!a.has(val) && !setHasEqualElement(set, val, strict, memo))
506506
return false;
507507
} else if (!strict &&
508508
!a.has(val) &&

0 commit comments

Comments
 (0)