diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js index 7e7098d40..28d86867b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-18.js @@ -10,17 +10,17 @@ description: > Array ---*/ - var arr = [11, 12]; - var testResult = false; - var initVal = 6.99; +var arr = [11, 12]; +var testResult = false; +var initVal = 6.99; - function callbackfn(prevVal, curVal, idx, obj) { - if (idx === 1) { - testResult = (prevVal === initVal); - } - return curVal; - } +function callbackfn(prevVal, curVal, idx, obj) { + if (idx === 1) { + testResult = (prevVal === initVal); + } + return curVal; +} - arr.reduceRight(callbackfn, initVal); +arr.reduceRight(callbackfn, initVal); assert(testResult, 'testResult !== true'); |