Fixes issue with Object prototype and the chaining syntax. [closes #4247]

This commit is contained in:
Erick Calder
2019-05-09 13:54:13 -07:00
committed by John-David Dalton
parent 343456d696
commit e42cd97dae

View File

@@ -17020,9 +17020,10 @@
baseForOwn(LazyWrapper.prototype, function(func, methodName) {
var lodashFunc = lodash[methodName];
if (lodashFunc) {
var key = (lodashFunc.name + ''),
names = realNames[key] || (realNames[key] = []);
var key = lodashFunc.name + '';
if (!hasOwnProperty.call(realNames, key)) return;
var names = realNames[key] || (realNames[key] = []);
names.push({ 'name': methodName, 'func': lodashFunc });
}
});