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

Unified Diff: test/mjsunit/regress/regress-1172-bis.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-1170.js ('k') | test/mjsunit/regress/regress-1327557.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-1172-bis.js
diff --git a/test/mjsunit/regress/regress-1172-bis.js b/test/mjsunit/regress/regress-1172-bis.js
index e8d5c81273123cbb9ab9eebd58cd974881f9336c..01b637ce113c735d6b2fedba82f71a31df24d031 100644
--- a/test/mjsunit/regress/regress-1172-bis.js
+++ b/test/mjsunit/regress/regress-1172-bis.js
@@ -29,9 +29,11 @@
// are properly treated.
Object.prototype.__defineGetter__(0, function() { throw 42; });
+var exception = false;
try {
Object[0]();
- assertUnreachable();
} catch(e) {
+ exception = true;
assertEquals(42, e);
}
+assertTrue(exception);
« no previous file with comments | « test/mjsunit/regress/regress-1170.js ('k') | test/mjsunit/regress/regress-1327557.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698