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

Unified Diff: test/mjsunit/strict-mode-eval.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/strict-mode.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/strict-mode-eval.js
diff --git a/test/mjsunit/strict-mode-eval.js b/test/mjsunit/strict-mode-eval.js
index 018ed9e0755ac51763f9ac84bf927434f58a4111..391daaa37c6fdb996faa8878492c2eea4ed2abc3 100644
--- a/test/mjsunit/strict-mode-eval.js
+++ b/test/mjsunit/strict-mode-eval.js
@@ -42,36 +42,44 @@ eval_alias(code3);
eval_alias(code4);
function strict1() {
+ var exception = false;
try {
eval(code1);
- assertUnreachable("did not throw exception");
} catch (e) {
+ exception = true;
assertInstanceof(e, SyntaxError);
}
+ assertTrue(exception);
function strict2() {
+ var exception = false;
try {
eval(code2);
- assertUnreachable("did not throw exception");
} catch (e) {
+ exception = true;
assertInstanceof(e, SyntaxError);
}
+ assertTrue(exception);
function strict3() {
+ var exception = false;
try {
eval(code3);
- assertUnreachable("did not throw exception");
} catch (e) {
+ exception = true;
assertInstanceof(e, SyntaxError);
}
+ assertTrue(exception);
function strict4() {
+ var exception = false;
try {
eval(code4);
- assertUnreachable("did not throw exception");
} catch (e) {
+ exception = true;
assertInstanceof(e, SyntaxError);
}
+ assertTrue(exception);
}
strict4();
}
« no previous file with comments | « test/mjsunit/strict-mode.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698