Simplify support.nonEnumArgs and increase code coverage.

This commit is contained in:
John-David Dalton
2014-07-27 15:52:23 -07:00
parent 8bddb47fab
commit 7e326b8431

View File

@@ -1001,8 +1001,7 @@
* @type boolean
*/
try {
support.nonEnumArgs = !(argsKey == '1' && hasOwnProperty.call(arguments, argsKey) &&
propertyIsEnumerable.call(arguments, argsKey));
support.nonEnumArgs = !(hasOwnProperty.call(arguments, 1) && propertyIsEnumerable.call(arguments, 1));
} catch(e) {
support.nonEnumArgs = true;
}