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

Unified Diff: test/mjsunit/mjsunit.js

Issue 13088: Follow jsc in throwing an exception when using test or exec on a... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years 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 | « src/regexp-delay.js ('k') | test/mjsunit/nested-repetition-count-overflow.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/mjsunit.js
===================================================================
--- test/mjsunit/mjsunit.js (revision 905)
+++ test/mjsunit/mjsunit.js (working copy)
@@ -90,12 +90,14 @@
function assertThrows(code) {
+ var threwException = true;
try {
eval(code);
- assertTrue(false, "did not throw exception");
+ threwException = false;
} catch (e) {
// Do nothing.
}
+ if (!threwException) assertTrue(false, "did not throw exception");
}
« no previous file with comments | « src/regexp-delay.js ('k') | test/mjsunit/nested-repetition-count-overflow.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698