Update propertyIsEnumerable mock for support.nonEnumArgs feature test changes.

This commit is contained in:
jdalton
2015-04-08 13:42:48 -07:00
parent 745d97ebe1
commit e777020e44
2 changed files with 4 additions and 4 deletions

View File

@@ -468,10 +468,10 @@
var _propertyIsEnumerable = objectProto.propertyIsEnumerable;
setProperty(objectProto, 'propertyIsEnumerable', function(key) {
if (key == '1' && _.isArguments(this) && _.isEqual(_.values(this), [0, 0])) {
if (key == '1' && _.isArguments(this) && _.isEqual(_.values(this), [1, 0])) {
throw new Error;
}
return _.has(this, key);
return _propertyIsEnumerable.call(this, key);
});
var _isFinite = Number.isFinite;