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

Unified Diff: test/mjsunit/regress/regress-86.js

Issue 5625: Fix issue 86 by keeping track of the fact that finally blocks... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | « test/mjsunit/bugs/bug-86.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-86.js
===================================================================
--- test/mjsunit/regress/regress-86.js (revision 399)
+++ test/mjsunit/regress/regress-86.js (working copy)
@@ -28,8 +28,9 @@
var aList = [1, 2, 3];
var loopCount = 0;
var leftThroughFinally = false;
+var enteredFinally = false;
for (x in aList) {
- leftThroughFinally = false;
+ leftThroughFinally = true;
try {
throw "ex1";
} catch(er1) {
@@ -40,5 +41,6 @@
}
leftThroughFinally = false;
}
-assertEquals(loopCount, 3);
+assertEquals(3, loopCount);
assertTrue(enteredFinally);
+assertTrue(leftThroughFinally);
Property changes on: test/mjsunit/regress/regress-86.js
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « test/mjsunit/bugs/bug-86.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698