Fixin tag scope in baseClone.

This commit is contained in:
Michał Lipiński
2017-05-18 20:41:00 +02:00
parent 0274d3dd2d
commit 8620733457

View File

@@ -155,6 +155,7 @@ function initCloneArray(array) {
*/
function baseClone(value, bitmask, customizer, key, object, stack) {
let result
let tag
const isDeep = bitmask & CLONE_DEEP_FLAG
const isFlat = bitmask & CLONE_FLAT_FLAG
const isFull = bitmask & CLONE_SYMBOLS_FLAG
@@ -175,7 +176,7 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
return copyArray(value, result)
}
} else {
const tag = getTag(value)
tag = getTag(value)
const isFunc = typeof value == 'function'
if (isBuffer(value)) {