mirror of https://github.com/tc39/test262.git
Example of using assert.js
This commit is contained in:
parent
4bb8c027e4
commit
0d94ef1e98
|
@ -8,10 +8,6 @@ description: thisArg should be bound to this if provided
|
||||||
var globalThis = this;
|
var globalThis = this;
|
||||||
|
|
||||||
[1].find(function () {
|
[1].find(function () {
|
||||||
if (this !== Array) {
|
assert.sameValue(this, Array, 'this should equal Array');
|
||||||
$ERROR('#1: this !== Array');
|
assert.notSameValue(this, globalThis, 'this should not equal globalThis');
|
||||||
}
|
|
||||||
if (this === globalThis) {
|
|
||||||
$ERROR('#2: this === globalThis. Should be Array');
|
|
||||||
}
|
|
||||||
}, Array);
|
}, Array);
|
||||||
|
|
Loading…
Reference in New Issue