From caae7a58790cf83ba42ba0dffd9a2abccaf93197 Mon Sep 17 00:00:00 2001 From: jdalton Date: Tue, 7 Jul 2015 08:15:34 -0700 Subject: [PATCH] Ensure `getFuncName` returns a string. --- lodash.src.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.src.js b/lodash.src.js index ec80b1419..e707a5ebb 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -4009,7 +4009,7 @@ * @returns {string} Returns the function name. */ function getFuncName(func) { - var result = func.name, + var result = (func.name + ''), array = realNames[result], length = array ? array.length : 0; @@ -12487,7 +12487,7 @@ baseForOwn(LazyWrapper.prototype, function(func, methodName) { var lodashFunc = lodash[methodName]; if (lodashFunc) { - var key = lodashFunc.name, + var key = (lodashFunc.name + ''), names = realNames[key] || (realNames[key] = []); names.push({ 'name': methodName, 'func': lodashFunc });