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

Unified Diff: test/mjsunit/regress/regress-1327557.js

Issue 7053035: Fix a number of tests that incorrectly used assertUnreachable. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments. Created 9 years, 7 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
« no previous file with comments | « test/mjsunit/regress/regress-1172-bis.js ('k') | test/mjsunit/regress/regress-244.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-1327557.js
diff --git a/test/mjsunit/regress/regress-1327557.js b/test/mjsunit/regress/regress-1327557.js
index bdf4277cca021591369540fa11ddc2991d557bcf..cd8f08f5a7258d0e0632470e5c7e534d912767fb 100644
--- a/test/mjsunit/regress/regress-1327557.js
+++ b/test/mjsunit/regress/regress-1327557.js
@@ -28,9 +28,11 @@
var x = { valueOf: function() { throw "x"; } };
var y = { valueOf: function() { throw "y"; } };
+var exception = false;
try {
x * -y;
- assertUnreachable("Didn't throw an exception");
} catch (e) {
+ exception = true;
assertEquals("y", e);
}
+assertTrue(exception);
« no previous file with comments | « test/mjsunit/regress/regress-1172-bis.js ('k') | test/mjsunit/regress/regress-244.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698