diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js index 01185212a..a5bbcd485 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-3-11.js @@ -9,14 +9,10 @@ description: > positive number ---*/ -function callbackfn(prevVal, curVal, idx, obj) { - return (curVal === 11 && idx === 1); -} + function callbackfn(prevVal, curVal, idx, obj) { + return (curVal === 11 && idx === 1); + } -var obj = { - 1: 11, - 2: 9, - length: "2" -}; + var obj = { 1: 11, 2: 9, length: "2" }; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); |