mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
Catch block should not larger as the parent.
This commit is contained in:
parent
b4828b4659
commit
d182bace9a
@ -1207,7 +1207,7 @@ class BranchManager {
|
||||
}
|
||||
}
|
||||
|
||||
if( parsedBlock.startPosition == gotoPos && parsedBlock.op == JavaBlockOperator.GOTO && parsedBlock.startPosition < parsedBlock.endPosition ) {
|
||||
if( parsedBlock.startPosition == gotoPos && parsedBlock.op == JavaBlockOperator.GOTO && parsedBlock.startPosition < parsedBlock.endPosition && parsedBlock.endPosition <= endPos ) {
|
||||
parsedOperations.remove( idx );
|
||||
endPos = parsedBlock.endPosition;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user