Fix inconsistent merging of multiple sources to function property

This commit is contained in:
sina
2018-06-21 00:54:05 +04:30
committed by John-David Dalton
parent 6e62e1e8df
commit 79b9d20a91
3 changed files with 24 additions and 5 deletions

View File

@@ -3681,7 +3681,7 @@
if (isArguments(objValue)) {
newValue = toPlainObject(objValue);
}
else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
else if (!isObject(objValue) || isFunction(objValue)) {
newValue = initCloneObject(srcValue);
}
}