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