throw exception by unknown token.

This commit is contained in:
Volker Berlin 2018-11-16 19:26:32 +01:00
parent 0227137e2e
commit b3df8e9562

View File

@ -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 ) {