Wrap arguments in case IIFE is removed.

This commit is contained in:
John-David Dalton
2016-10-05 10:33:50 -07:00
parent 836bd258a0
commit b30f979ec7

View File

@@ -11202,7 +11202,7 @@
* _.isArguments([1, 2, 3]);
* // => false
*/
var isArguments = baseIsArguments(arguments) ? baseIsArguments : function(value) {
var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
!propertyIsEnumerable.call(value, 'callee');
};