use of org.graalvm.wasm.api.WebAssembly in project graal by oracle.
the class WasmJsApiSuite method runValidationInvalid.
private static void runValidationInvalid(byte[] data) throws IOException {
runTest(context -> {
WebAssembly wasm = new WebAssembly(context);
Assert.assertTrue("Should have failed - invalid module", !wasm.moduleValidate(data));
});
}
Aggregations