Bump to v4.17.20.

This commit is contained in:
Benjamin Tan
2020-08-14 00:52:31 +08:00
parent f9cd8f552b
commit f2e7063ee4
19 changed files with 337 additions and 210 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);