diff options
Diffstat (limited to 'test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js')
-rw-r--r-- | test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js index 1256ed668..a19e73e2b 100644 --- a/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js +++ b/test/built-ins/Array/prototype/reduceRight/15.4.4.22-5-3.js @@ -10,13 +10,12 @@ description: > no initVal ---*/ -foo.prototype = new Array(1, 2, 3); + foo.prototype = new Array(1, 2, 3); + function foo() {} + var f = new foo(); + f.length = false; -function foo() {} -var f = new foo(); -f.length = false; - -function cb() {} + function cb(){} assert.throws(TypeError, function() { - f.reduceRight(cb); + f.reduceRight(cb); }); |