Add propertyIsEnumerable check to the _.isArguments fallback. [closes #382]

This commit is contained in:
John-David Dalton
2013-10-30 09:24:25 -07:00
parent 6bb89778b2
commit 22aa02895e
2 changed files with 2 additions and 2 deletions

View File

@@ -1857,7 +1857,7 @@
if (!support.argsClass) {
isArguments = function(value) {
return value && typeof value == 'object' && typeof value.length == 'number' &&
hasOwnProperty.call(value, 'callee') || false;
hasOwnProperty.call(value, 'callee') && propertyIsEnumerable.call(value, 'callee') || false;
};
}