mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-13 04:17:49 +00:00
Fixin tag scope in baseClone.
This commit is contained in:
@@ -155,6 +155,7 @@ function initCloneArray(array) {
|
|||||||
*/
|
*/
|
||||||
function baseClone(value, bitmask, customizer, key, object, stack) {
|
function baseClone(value, bitmask, customizer, key, object, stack) {
|
||||||
let result
|
let result
|
||||||
|
let tag
|
||||||
const isDeep = bitmask & CLONE_DEEP_FLAG
|
const isDeep = bitmask & CLONE_DEEP_FLAG
|
||||||
const isFlat = bitmask & CLONE_FLAT_FLAG
|
const isFlat = bitmask & CLONE_FLAT_FLAG
|
||||||
const isFull = bitmask & CLONE_SYMBOLS_FLAG
|
const isFull = bitmask & CLONE_SYMBOLS_FLAG
|
||||||
@@ -175,7 +176,7 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|||||||
return copyArray(value, result)
|
return copyArray(value, result)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const tag = getTag(value)
|
tag = getTag(value)
|
||||||
const isFunc = typeof value == 'function'
|
const isFunc = typeof value == 'function'
|
||||||
|
|
||||||
if (isBuffer(value)) {
|
if (isBuffer(value)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user