fix: never-ending try-catch issues

This commit is contained in:
TopchetoEU 2023-12-24 14:27:00 +02:00
parent 078d7ed95f
commit 1b2068a274
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4

View File

@ -254,6 +254,7 @@ public class CodeFrame {
break;
}
else {
popTryFlag = false;
if (tryCtx.state == TryState.CATCH) scope.catchVars.remove(scope.catchVars.size() - 1);
if (tryCtx.state != TryState.FINALLY && tryCtx.hasFinally()) {