diff options
author | Ryan <ry@tinyclouds.org> | 2009-07-20 13:18:42 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-07-20 13:18:42 +0200 |
commit | 88e9a5f122822b96e0ccfbba2083fe6ef43f3fdc (patch) | |
tree | 3cad417de864555fd27d573af866f2a1b3c352ad /deps/v8/test/mjsunit/array-reduce.js | |
parent | f4dfbe37a3f1fef2c91068958dfe1888ba100332 (diff) | |
download | node-new-88e9a5f122822b96e0ccfbba2083fe6ef43f3fdc.tar.gz |
Upgrade V8 to 1.2.14
Diffstat (limited to 'deps/v8/test/mjsunit/array-reduce.js')
-rw-r--r-- | deps/v8/test/mjsunit/array-reduce.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/deps/v8/test/mjsunit/array-reduce.js b/deps/v8/test/mjsunit/array-reduce.js index e476e1cb07..83d9023a49 100644 --- a/deps/v8/test/mjsunit/array-reduce.js +++ b/deps/v8/test/mjsunit/array-reduce.js @@ -413,7 +413,7 @@ testReduce("reduceRight", "ArrayWithNonElementPropertiesReduceRight", 6, try { [1].reduce("not a function"); - fail("Reduce callback not a function not throwing"); + assertUnreachable("Reduce callback not a function not throwing"); } catch (e) { assertTrue(e instanceof TypeError, "reduce callback not a function not throwing TypeError"); @@ -423,7 +423,7 @@ try { try { [1].reduceRight("not a function"); - fail("ReduceRight callback not a function not throwing"); + assertUnreachable("ReduceRight callback not a function not throwing"); } catch (e) { assertTrue(e instanceof TypeError, "reduceRight callback not a function not throwing TypeError"); @@ -434,7 +434,7 @@ try { try { [].reduce(sum); - fail("Reduce no initial value not throwing"); + assertUnreachable("Reduce no initial value not throwing"); } catch (e) { assertTrue(e instanceof TypeError, "reduce no initial value not throwing TypeError"); @@ -444,7 +444,7 @@ try { try { [].reduceRight(sum); - fail("ReduceRight no initial value not throwing"); + assertUnreachable("ReduceRight no initial value not throwing"); } catch (e) { assertTrue(e instanceof TypeError, "reduceRight no initial value not throwing TypeError"); @@ -455,7 +455,7 @@ try { try { [,,,].reduce(sum); - fail("Reduce sparse no initial value not throwing"); + assertUnreachable("Reduce sparse no initial value not throwing"); } catch (e) { assertTrue(e instanceof TypeError, "reduce sparse no initial value not throwing TypeError"); @@ -465,7 +465,7 @@ try { try { [,,,].reduceRight(sum); - fail("ReduceRight sparse no initial value not throwing"); + assertUnreachable("ReduceRight sparse no initial value not throwing"); } catch (e) { assertTrue(e instanceof TypeError, "reduceRight sparse no initial value not throwing TypeError"); |