Ensure stack is popped after recursive merge so that it doesn't affect sibling properties. [closes #2060]

This commit is contained in:
John-David Dalton
2016-02-26 09:33:30 -08:00
parent ff7d79d5fc
commit 0b76654b71
2 changed files with 2 additions and 1 deletions

View File

@@ -3209,6 +3209,7 @@
// Recursively merge objects and arrays (susceptible to call stack limits).
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
}
stack['delete'](srcValue);
assignMergeValue(object, key, newValue);
}