diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js index 7c227878c..27ddd16b0 100644 --- a/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js +++ b/test/built-ins/Array/prototype/reduce/15.4.4.21-7-2.js @@ -10,11 +10,10 @@ description: > null (type conversion)) ---*/ -foo.prototype = new Array(1, 2, 3); + foo.prototype = new Array(1, 2, 3); + function foo() {} + var f = new foo(); + f.length = null; -function foo() {} -var f = new foo(); -f.length = null; - -function cb() {} -assert.sameValue(f.reduce(cb, 1), 1, 'f.reduce(cb,1)'); + function cb(){} +assert.sameValue(f.reduce(cb,1), 1, 'f.reduce(cb,1)'); |