Skip to content

Commit 76677c0

Browse files
authored
Merge pull request #1 from lemire/fixit
fix: correct comparison
2 parents ed5916e + da4f3d2 commit 76677c0

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)