diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js index 6076c9b10..2ac5c2e73 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-9-1.js @@ -9,12 +9,12 @@ description: > array after it is called ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - arr[5] = 6; - arr[2] = 3; - return prevVal + curVal; - } +function callbackfn(prevVal, curVal, idx, obj) { + arr[5] = 6; + arr[2] = 3; + return prevVal + curVal; +} - var arr = [1, 2, , 4, '5']; +var arr = [1, 2, , 4, '5']; assert.sameValue(arr.reduce(callbackfn), "105", 'arr.reduce(callbackfn)'); |