diff options
Diffstat (limited to 'test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js')
-rw-r--r-- | test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js index f9d83678e..3732ea441 100644 --- a/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js +++ b/test/built-ins/Array/prototype/every/15.4.4.16-7-c-ii-17.js @@ -9,17 +9,14 @@ description: > when T is not an object (T is a number primitive) ---*/ -var accessed = false; + var accessed = false; -function callbackfn(val, idx, o) { - accessed = true; - return 5 === this.valueOf(); -} + function callbackfn(val, idx, o) { + accessed = true; + return 5 === this.valueOf(); + } -var obj = { - 0: 11, - length: 2 -}; + var obj = { 0: 11, length: 2 }; assert(Array.prototype.every.call(obj, callbackfn, 5), 'Array.prototype.every.call(obj, callbackfn, 5) !== true'); assert(accessed, 'accessed !== true'); |