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