Issue 86: Continuing a for-each loop in a finally clause exits the loop
http://code.google.com/p/v8/issues/detail?id=86

New issue report by christian.plesner.hansen:
The combination of for-each loops, try/finally and continue behaves
incorrectly.  This code demonstrates the problem

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);




Issue attributes:
        Status: Accepted
        Owner: ----
        Labels: Type-Defect Priority-Medium

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to