From e777020e44b84506b95c202b9ea5af66556388e2 Mon Sep 17 00:00:00 2001 From: jdalton Date: Wed, 8 Apr 2015 13:42:48 -0700 Subject: [PATCH] Update `propertyIsEnumerable` mock for `support.nonEnumArgs` feature test changes. --- test/index.html | 4 ++-- test/test.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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;