Fixed: #270 AS3 decompilation - loop followed by try

This commit is contained in:
Jindra Petřík
2021-03-13 21:08:23 +01:00
parent 09b68c1f9c
commit b84ccc7005
5 changed files with 28 additions and 23 deletions
@@ -2189,6 +2189,7 @@ public class AVM2Graph extends Graph {
ts.targetPart = searchPart(code.adr2pos(body.exceptions[e].target), allParts);
int startIp = code.adr2pos(body.exceptions[e].start, true);
int endIp = code.adr2pos(body.exceptions[e].end, true);
ts.startPart = searchPart(startIp, allParts);
for (GraphPart p : allParts) {
if (p.start >= startIp && p.start < endIp) {
ts.throwingParts.add(p);