File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
graalwasm/graalwasm-embed-c-code-guide
src/main/java/com/example Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ public class App {
156156 public static void main (String [] args ) throws IOException {
157157 // Find the WebAssembly module resource
158158 URL wasmFile = App . class. getResource(" floyd.wasm" );
159- Source source = Source . newBuilder(" wasm" , wasmFile). name( " example " ) . build();
159+ Source source = Source . newBuilder(" wasm" , wasmFile). build();
160160
161161 // Create Wasm context
162162 try (Context context = Context . newBuilder(" wasm" ). option(" wasm.Builtins" , " wasi_snapshot_preview1" ). build()) {
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ public static Object javaIncrement(Value... v) {
2525 public static void main (String [] args ) throws IOException {
2626 // Find the WebAssembly module resource
2727 URL wasmFile = App .class .getResource ("floyd.wasm" );
28- Source source = Source .newBuilder ("wasm" , wasmFile ).name ( "example" ). build ();
28+ Source source = Source .newBuilder ("wasm" , wasmFile ).build ();
2929
3030 // Create Wasm context
3131 try (Context context = Context .newBuilder ("wasm" )
You can’t perform that action at this time.
0 commit comments