Also try blocks skip

This commit is contained in:
Volker Berlin 2020-04-10 16:32:06 +02:00
parent 23da864f1d
commit c19a9ca9b6

View File

@ -1235,6 +1235,7 @@ class BranchManger {
case IF:
case BLOCK:
case LOOP:
case TRY:
// skip the content of the block, important to not count ELSE blocks
i = findEndInstruction( instructions, i );
break;
@ -1266,6 +1267,7 @@ class BranchManger {
case IF:
case BLOCK:
case LOOP:
case TRY:
count++;
break;
case END: