diff --git a/test/index.html b/test/index.html
index c220017c4..b191ddfa6 100644
--- a/test/index.html
+++ b/test/index.html
@@ -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);
diff --git a/test/test.js b/test/test.js
index 2bce9513a..2f32fad44 100644
--- a/test/test.js
+++ b/test/test.js
@@ -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;