Search for srcValue in stack before objValue.

This commit is contained in:
John-David Dalton
2015-12-26 21:31:02 -06:00
parent a5b9063088
commit e05c8677bf

View File

@@ -3038,7 +3038,7 @@
function baseMergeDeep(object, source, key, mergeFunc, customizer, stack) {
var objValue = object[key],
srcValue = source[key],
stacked = stack.get(objValue) || stack.get(srcValue);
stacked = stack.get(srcValue) || stack.get(objValue);
if (stacked) {
assignMergeValue(object, key, stacked);