diff options
Diffstat (limited to 'test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js')
-rw-r--r-- | test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js index 23fe1f4c1..9cb001e0c 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-20.js @@ -9,20 +9,15 @@ description: > (thisArg is correct) ---*/ -var accessed = false; + var accessed = false; -function callbackfn(val, idx, obj) { - accessed = true; - return 10 === this.threshold; -} + function callbackfn(val, idx, obj) { + accessed = true; + return 10 === this.threshold; + } -var thisArg = { - threshold: 10 -}; + var thisArg = { threshold: 10 }; -var obj = { - 0: 11, - length: 1 -}; + var obj = { 0: 11, length: 1 }; assert(Array.prototype.every.call(obj, callbackfn, thisArg), 'Array.prototype.every.call(obj, callbackfn, thisArg) !== true'); |