diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js index b2823532e..0b8e5be99 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-17.js @@ -9,19 +9,19 @@ description: > iteration is the result of previous iteration on an Array ---*/ -var arr = [11, 12, 13]; -var testResult = true; -var initVal = 6.99; -var preResult = initVal; + var arr = [11, 12, 13]; + var testResult = true; + var initVal = 6.99; + var preResult = initVal; -function callbackfn(prevVal, curVal, idx, obj) { - if (prevVal !== preResult) { - testResult = false; - } - preResult = curVal; - return curVal; -} + function callbackfn(prevVal, curVal, idx, obj) { + if (prevVal !== preResult) { + testResult = false; + } + preResult = curVal; + return curVal; + } -arr.reduceRight(callbackfn, initVal); + arr.reduceRight(callbackfn, initVal); assert(testResult, 'testResult !== true'); |