mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +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;
|
boolean isContinue = false;
|
||||||
for( int i = ifCount + 1; i < parsedOpCount; i++ ) {
|
for( int i = ifCount + 1; i < parsedOpCount; i++ ) {
|
||||||
ParsedBlock op = parsedOperations.get( i );
|
ParsedBlock op = parsedOperations.get( i );
|
||||||
if( op.endPosition >= elsePos && op.op == JavaBlockOperator.IF ) {
|
if( op.endPosition >= elsePos ) {
|
||||||
isContinue = true;
|
isContinue = op.op == JavaBlockOperator.IF;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user