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

Unified Diff: test/mjsunit/regress/regress-1130.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-1119.js ('k') | test/mjsunit/regress/regress-1132.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-1130.js
diff --git a/test/mjsunit/regress/regress-1130.js b/test/mjsunit/regress/regress-1130.js
index 188f3f9214820691a9f989415ff3db59f9b46394..07d5e3d46727e4f8fef105dd895f205d33200a56 100644
--- a/test/mjsunit/regress/regress-1130.js
+++ b/test/mjsunit/regress/regress-1130.js
@@ -30,9 +30,11 @@
Object.prototype.__defineGetter__(0, function() { throw 42; } );
+var exception = false;
try {
eval("(function() { const x; var x })")();
- assertUnreachable();
} catch (e) {
+ exception = true;
assertTrue(e instanceof TypeError);
}
+assertTrue(exception);
« no previous file with comments | « test/mjsunit/regress/regress-1119.js ('k') | test/mjsunit/regress/regress-1132.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698