mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
add unreachable to the wat parser
This commit is contained in:
parent
499cddfb0b
commit
dd74a8beae
@ -259,6 +259,9 @@ public class WatParser extends WasmCodeBuilder {
|
|||||||
case "br_if":
|
case "br_if":
|
||||||
addBlockInstruction( WasmBlockOperator.BR_IF, getInt( tokens, ++i ), javaCodePos, lineNumber );
|
addBlockInstruction( WasmBlockOperator.BR_IF, getInt( tokens, ++i ), javaCodePos, lineNumber );
|
||||||
break;
|
break;
|
||||||
|
case "unreachable":
|
||||||
|
addBlockInstruction( WasmBlockOperator.UNREACHABLE, null, javaCodePos, lineNumber );
|
||||||
|
break;
|
||||||
case "i32.load":
|
case "i32.load":
|
||||||
i = addMemoryInstruction( MemoryOperator.load, ValueType.i32, tokens, i, lineNumber );
|
i = addMemoryInstruction( MemoryOperator.load, ValueType.i32, tokens, i, lineNumber );
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user