diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js index 9385b2243..9088ded91 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-2-6.js @@ -9,18 +9,20 @@ description: > an inherited data property ---*/ - function callbackfn(prevVal, curVal, idx, obj) { - return (obj.length === 2); - } +function callbackfn(prevVal, curVal, idx, obj) { + return (obj.length === 2); +} - var proto = { length: 2 }; +var proto = { + length: 2 +}; - var Con = function () { }; - Con.prototype = proto; +var Con = function() {}; +Con.prototype = proto; - var child = new Con(); - child[0] = 12; - child[1] = 11; - child[2] = 9; +var child = new Con(); +child[0] = 12; +child[1] = 11; +child[2] = 9; assert.sameValue(Array.prototype.reduce.call(child, callbackfn, 1), true, 'Array.prototype.reduce.call(child, callbackfn, 1)'); |