mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
fix WHILE loop after a return
This commit is contained in:
parent
86f95ad3bb
commit
84f2f45d4c
@ -617,8 +617,8 @@ class BranchManager {
|
||||
boolean isContinue = false;
|
||||
for( int i = ifCount + 1; i < parsedOpCount; i++ ) {
|
||||
ParsedBlock op = parsedOperations.get( i );
|
||||
if( op.endPosition >= elsePos && op.op == JavaBlockOperator.IF ) {
|
||||
isContinue = true;
|
||||
if( op.endPosition >= elsePos ) {
|
||||
isContinue = op.op == JavaBlockOperator.IF;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user