summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js')
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js
index 238b1e2a3..7324a06a8 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-2.js
@@ -9,17 +9,17 @@ description: >
parameters (initialvalue passed)
---*/
-var bParCorrect = false;
-var arr = [0, 1, true, null, new Object(), "five"];
-var initialValue = 5.5;
+ var bParCorrect = false;
+ var arr = [0, 1, true, null, new Object(), "five"];
+ var initialValue = 5.5;
-function callbackfn(prevVal, curVal, idx, obj) {
- if (idx === obj.length - 1 && obj[idx] === curVal && prevVal === initialValue)
- return curVal;
- else if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal)
- return curVal;
- else
- return false;
-}
+ function callbackfn(prevVal, curVal, idx, obj) {
+ if (idx === obj.length - 1 && obj[idx] === curVal && prevVal === initialValue)
+ return curVal;
+ else if (idx + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal)
+ return curVal;
+ else
+ return false;
+ }
assert.sameValue(arr.reduceRight(callbackfn, initialValue), 0, 'arr.reduceRight(callbackfn, initialValue)');