From ae6bbf78584a0f61477ed941674812177f525253 Mon Sep 17 00:00:00 2001 From: Yuga Sun Date: Thu, 21 Mar 2019 15:14:15 +0800 Subject: [PATCH] fix[Utils]: fixed deepClone error msg (#1748) --- src/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.js b/src/utils/index.js index ebe58ff8..1df0f45d 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -274,7 +274,7 @@ export function debounce(func, wait, immediate) { */ export function deepClone(source) { if (!source && typeof source !== 'object') { - throw new Error('error arguments', 'shallowClone') + throw new Error('error arguments', 'deepClone') } const targetObj = source.constructor === Array ? [] : {} Object.keys(source).forEach(keys => {