diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js index 4e5e8bb97..700961b96 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-1.js @@ -9,15 +9,15 @@ description: > Array-like object ---*/ -function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); -} + function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); + } -var obj = { - 0: 12, - 1: 11, - 2: 9, - length: 2 -}; + var obj = { + 0: 12, + 1: 11, + 2: 9, + length: 2 + }; assert.sameValue(Array.prototype.reduce.call(obj, callbackfn, 1), true, 'Array.prototype.reduce.call(obj, callbackfn, 1)'); |