mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +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":
|
||||
addBlockInstruction( WasmBlockOperator.BR_IF, getInt( tokens, ++i ), javaCodePos, lineNumber );
|
||||
break;
|
||||
case "unreachable":
|
||||
addBlockInstruction( WasmBlockOperator.UNREACHABLE, null, javaCodePos, lineNumber );
|
||||
break;
|
||||
case "i32.load":
|
||||
i = addMemoryInstruction( MemoryOperator.load, ValueType.i32, tokens, i, lineNumber );
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user