Bump to v4.17.20.

This commit is contained in:
Benjamin Tan
2020-12-20 14:19:47 +08:00
parent 4d5fdc492f
commit 42e2585e5f
16 changed files with 78 additions and 25 deletions

View File

@@ -39,10 +39,11 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
return false;
}
}
// Assume cyclic values are equal.
var stacked = stack.get(object);
if (stacked && stack.get(other)) {
return stacked == other;
// Check that cyclic values are equal.
var objStacked = stack.get(object);
var othStacked = stack.get(other);
if (objStacked && othStacked) {
return objStacked == other && othStacked == object;
}
var result = true;
stack.set(object, other);