Fix _.merge regression with buffers. [closes #2699]

This commit is contained in:
John-David Dalton
2016-10-03 17:07:45 -07:00
parent 29e2598a39
commit 8592f4163f

View File

@@ -3643,7 +3643,9 @@
}
else if (isTyped) {
isCommon = false;
newValue = cloneTypedArray(srcValue, true);
newValue = isBuffer(srcValue)
? cloneBuffer(srcValue, true)
: cloneTypedArray(srcValue, true);
}
else {
newValue = [];