diff options
Diffstat (limited to 'test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js')
-rw-r--r-- | test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js index f54a10f05..de0a66b25 100644 --- a/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js +++ b/test/built-ins/Array/prototype/some/15.4.4.17-7-c-i-27.js @@ -10,28 +10,28 @@ description: > greater than number of parameters) ---*/ -var firstResult = false; -var secondResult = false; -var thirdResult = false; + var firstResult = false; + var secondResult = false; + var thirdResult = false; -function callbackfn(val, idx, obj) { - if (idx === 0) { - firstResult = (val === 11); - return false; - } else if (idx === 1) { - secondResult = (val === 12); - return false; - } else if (idx === 2) { - thirdResult = (val === 9); - return false; - } else { - return true; - } -} + function callbackfn(val, idx, obj) { + if (idx === 0) { + firstResult = (val === 11); + return false; + } else if (idx === 1) { + secondResult = (val === 12); + return false; + } else if (idx === 2) { + thirdResult = (val === 9); + return false; + } else { + return true; + } + } -var func = function(a, b) { - return Array.prototype.some.call(arguments, callbackfn); -}; + var func = function (a, b) { + return Array.prototype.some.call(arguments, callbackfn); + }; assert.sameValue(func(11, 12, 9), false, 'func(11, 12, 9)'); assert(firstResult, 'firstResult !== true'); |