diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js index 5fda99875..7d7f0356d 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-7-6.js @@ -10,17 +10,12 @@ description: > with obj with valueOf) ---*/ -foo.prototype = new Array(1, 2, 3); + foo.prototype = new Array(1, 2, 3); + function foo() {} + var f = new foo(); -function foo() {} -var f = new foo(); + var o = { valueOf: function () { return 0;}}; + f.length = o; -var o = { - valueOf: function() { - return 0; - } -}; -f.length = o; - -function cb() {} -assert.sameValue(f.reduceRight(cb, 1), 1, 'f.reduceRight(cb,1)'); + function cb(){} +assert.sameValue(f.reduceRight(cb,1), 1, 'f.reduceRight(cb,1)'); |