aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite')
-rw-r--r--test/suite/es6/Array.prototype.find/Array.prototype.find_this-defined.js8
1 files changed, 2 insertions, 6 deletions
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 88bf029cd..6d25211d3 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);