diff --git a/test/suite/es6/Array.prototype.find/Array.prototype.find_this-defined.js b/test/suite/es6/Array.prototype.find/Array.prototype.find_this-defined.js index 88bf029cde9778f8339aab59c290bf5a811a8363..6d25211d396711837c19e9e7b9d28a96e28c0fcb 100644 --- a/test/suite/es6/Array.prototype.find/Array.prototype.find_this-defined.js +++ b/test/suite/es6/Array.prototype.find/Array.prototype.find_this-defined.js @@ -8,10 +8,6 @@ description: thisArg should be bound to this if provided var globalThis = this; [1].find(function () { - if (this !== Array) { - $ERROR('#1: this !== Array'); - } - if (this === globalThis) { - $ERROR('#2: this === globalThis. Should be Array'); - } + assert.sameValue(this, Array, 'this should equal Array'); + assert.notSameValue(this, globalThis, 'this should not equal globalThis'); }, Array);