diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js index 0455ef32a..eb48426ea 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-9-3.js @@ -9,14 +9,14 @@ description: > elements in array after the call ---*/ -function callbackfn(prevVal, curVal, idx, obj) -{ - delete arr[1]; - delete arr[4]; - return prevVal + curVal; -} + function callbackfn(prevVal, curVal, idx, obj) + { + delete arr[1]; + delete arr[4]; + return prevVal + curVal; + } -var arr = ['1', 2, 3, 4, 5]; + var arr = ['1',2,3,4,5]; // two elements deleted assert.sameValue(arr.reduceRight(callbackfn), "121", 'arr.reduceRight(callbackfn)'); |