summaryrefslogtreecommitdiff
path: root/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js')
-rw-r--r--test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js
index ef650ba62..50b5043be 100644
--- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js
+++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-c-ii-1.js
@@ -9,14 +9,14 @@ description: >
parameters (initialvalue not passed)
---*/
- function callbackfn(prevVal, curVal, idx, obj)
- {
- 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 + 1 < obj.length && obj[idx] === curVal && obj[idx + 1] === prevVal)
+ return curVal;
+ else
+ return false;
+}
- var arr = [0,1,true,null,new Object(),"five"];
+var arr = [0, 1, true, null, new Object(), "five"];
assert.sameValue(arr.reduceRight(callbackfn), 0, 'arr.reduceRight(callbackfn)');