Fixed #1761 AS3 - try..finally inside another structure like if

This commit is contained in:
Jindra Petřík
2021-11-30 07:13:32 +01:00
parent fd3e3eec61
commit f1ab87f2b7
9 changed files with 46 additions and 7 deletions

View File

@@ -462,15 +462,17 @@ public class AVM2Graph extends Graph {
}
}
//return in finally block is joined after switch decision
for (GraphPart p : switchPart.nextParts) {
//This caused problems, so it's commented out
//the tests still pass, so I can only wonder why it's there. :-(
//return in finally block is joined after switch decision
/*for (GraphPart p : switchPart.nextParts) {
for (GraphPart r : p.refs) {
if (r != switchPart) {
localData.finallyJumps.put(r, p);
localData.finallyJumpsToFinallyIndex.put(r, e);
}
}
}
}*/
localData.ignoredSwitches.put(e, switchPart);
} else {