Skip to content

Commit

Permalink
Merge pull request #1 from lemire/fixit
Browse files Browse the repository at this point in the history
fix: correct comparison
  • Loading branch information
lemire authored Jun 13, 2024
2 parents ed5916e + da4f3d2 commit 76677c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/util/comparisons.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ function setEquiv(a, b, strict, memo) {
for (const val of b) {
// Primitive values have already been handled above.
if (typeof val === 'object' && val !== null) {
if (!setHasEqualElement(set, val, strict, memo))
if (!a.has(val) && !setHasEqualElement(set, val, strict, memo))
return false;
} else if (!strict &&
!a.has(val) &&
Expand Down

0 comments on commit 76677c0

Please sign in to comment.