Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: test/mjsunit/array-reduce.js

Issue 155279: X64: Fix bug in left-shift. (Closed)
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/mjsunit/array-reduce.js
diff --git a/test/mjsunit/array-reduce.js b/test/mjsunit/array-reduce.js
index e476e1cb070e9b2d302931192bd82cf7fc8f7e93..83d9023a49f0a5d9417315e8bcc9282ace30d75e 100755
--- a/test/mjsunit/array-reduce.js
+++ b/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");

Powered by Google App Engine
This is Rietveld 408576698