mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
throw exception by unknown token.
This commit is contained in:
parent
0227137e2e
commit
b3df8e9562
@ -79,6 +79,8 @@ public class WatParser extends WasmCodeBuilder {
|
||||
case "return":
|
||||
addBlockInstruction( WasmBlockOperator.RETURN, null, javaCodePos );
|
||||
break;
|
||||
default:
|
||||
throw new WasmException( "Unknown WASM token: " + tok, lineNumber );
|
||||
}
|
||||
}
|
||||
} catch( Exception ex ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user