mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Prevent failing circular reference detection. (#2543)
This commit is contained in:
committed by
John-David Dalton
parent
1f44cebac3
commit
b54e28deb7
@@ -2415,9 +2415,6 @@
|
|||||||
// Recursively populate clone (susceptible to call stack limits).
|
// Recursively populate clone (susceptible to call stack limits).
|
||||||
assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
|
assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack));
|
||||||
});
|
});
|
||||||
if (!isFull) {
|
|
||||||
stack['delete'](value);
|
|
||||||
}
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -3412,6 +3409,7 @@
|
|||||||
// Recursively merge objects and arrays (susceptible to call stack limits).
|
// Recursively merge objects and arrays (susceptible to call stack limits).
|
||||||
stack.set(srcValue, newValue);
|
stack.set(srcValue, newValue);
|
||||||
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
||||||
|
stack['delete'](srcValue);
|
||||||
}
|
}
|
||||||
assignMergeValue(object, key, newValue);
|
assignMergeValue(object, key, newValue);
|
||||||
}
|
}
|
||||||
@@ -6116,6 +6114,7 @@
|
|||||||
// Recursively merge objects and arrays (susceptible to call stack limits).
|
// Recursively merge objects and arrays (susceptible to call stack limits).
|
||||||
stack.set(srcValue, objValue);
|
stack.set(srcValue, objValue);
|
||||||
baseMerge(objValue, srcValue, undefined, mergeDefaults, stack);
|
baseMerge(objValue, srcValue, undefined, mergeDefaults, stack);
|
||||||
|
stack['delete'](srcValue);
|
||||||
}
|
}
|
||||||
return objValue;
|
return objValue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user