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

Unified Diff: test/mjsunit/bugs/bug-86.js

Issue 4081: Various test-related changes. (Closed)
Patch Set: Created 12 years, 3 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 | « samples/shell.cc ('k') | test/mjsunit/bugs/bug-87.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/bugs/bug-86.js
diff --git a/test/mjsunit/bugs/bug-86.js b/test/mjsunit/bugs/bug-86.js
new file mode 100644
index 0000000000000000000000000000000000000000..ae4032d2bb2ce87ef06a4eb862ad27874ad223c4
--- /dev/null
+++ b/test/mjsunit/bugs/bug-86.js
@@ -0,0 +1,17 @@
+var aList = [1, 2, 3];
+var loopCount = 0;
+var leftThroughFinally = false;
+for (x in aList) {
+ leftThroughFinally = false;
+ try {
+ throw "ex1";
+ } catch(er1) {
+ loopCount += 1;
+ } finally {
+ enteredFinally = true;
+ continue;
+ }
+ leftThroughFinally = false;
+}
+assertEquals(loopCount, 3);
+assertTrue(enteredFinally);
« no previous file with comments | « samples/shell.cc ('k') | test/mjsunit/bugs/bug-87.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698