mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 02:44:47 +01:00
fix the exception type check
This commit is contained in:
parent
d6a7ead579
commit
cbf27fdfa6
@ -932,8 +932,9 @@ class BranchManger {
|
||||
int lineNumber = storeException.getLineNumber();
|
||||
|
||||
instructions.add( ++instrPos, storeException.create( VariableOperator.get ) );
|
||||
instructions.add( ++instrPos, new WasmConstInstruction( type.getCode(), catchPos, lineNumber ) );
|
||||
instructions.add( ++instrPos, new WasmConstInstruction( type.getClassIndex(), catchPos, lineNumber ) );
|
||||
instructions.add( ++instrPos, new WasmCallInstruction( instanceOf, catchPos, lineNumber, options.types, false ) );
|
||||
instructions.add( ++instrPos, new WasmNumericInstruction( NumericOperator.eqz, ValueType.i32, catchPos, lineNumber ) );
|
||||
instructions.add( ++instrPos, new WasmBlockInstruction( WasmBlockOperator.IF, ValueType.empty, catchPos, lineNumber ) );
|
||||
instructions.add( ++instrPos, storeException.create( VariableOperator.get ) );
|
||||
instructions.add( ++instrPos, new WasmBlockInstruction( WasmBlockOperator.THROW, null, catchPos, lineNumber ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user