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

@@ -97,10 +97,10 @@
setProperty(objectProto, '_propertyIsEnumerable', propertyIsEnumerable);
setProperty(objectProto, 'propertyIsEnumerable', function(key) {
if (key == '1' && this && typeof this == 'object' && this.length === 2 &&
if (key == '1' && this && typeof this == 'object' &&
hasOwnProperty.call(this, 'callee') &&
!propertyIsEnumerable.call(this, 'callee') &&
this[0] === 0 && this[1] === 0) {
this.length === 2 && this[0] === 1 && this[1] === 0) {
throw new Error;
}
return propertyIsEnumerable.call(this, key);