From 8620733457416768146b6dc73343677e25176352 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lipi=C5=84ski?= Date: Thu, 18 May 2017 20:41:00 +0200 Subject: [PATCH] Fixin tag scope in `baseClone`. --- .internal/baseClone.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.internal/baseClone.js b/.internal/baseClone.js index 4267a4d79..88c888529 100644 --- a/.internal/baseClone.js +++ b/.internal/baseClone.js @@ -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)) {