diff options
Diffstat (limited to 'test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js')
-rw-r--r-- | test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js index 451d0b3d3..9c926f28a 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-ii-8.js @@ -9,17 +9,13 @@ description: > iterations is observed ---*/ -function callbackfn(val, idx, obj) { - if (idx === 0) { - obj[idx + 1] = 11; - } - return val > 10; -} + function callbackfn(val, idx, obj) { + if (idx === 0) { + obj[idx + 1] = 11; + } + return val > 10; + } -var obj = { - 0: 9, - 1: 8, - length: 2 -}; + var obj = { 0: 9, 1: 8, length: 2 }; assert(Array.prototype.some.call(obj, callbackfn), 'Array.prototype.some.call(obj, callbackfn) !== true'); |