mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +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":
|
case "return":
|
||||||
addBlockInstruction( WasmBlockOperator.RETURN, null, javaCodePos );
|
addBlockInstruction( WasmBlockOperator.RETURN, null, javaCodePos );
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
throw new WasmException( "Unknown WASM token: " + tok, lineNumber );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch( Exception ex ) {
|
} catch( Exception ex ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user