Skip to content

Commit 60cf0ae

Browse files
committed
Explain that calling a function happens after the runtime is ready
1 parent 19c3ae1 commit 60cf0ae

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

web-image/export-java-function/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ This demo exposes a simple Java method to the global JavaScript scope using the
4343
```bash
4444
jwebserver -p 8000
4545
```
46-
Instead of just loading the script, you attach some logic after the runtime is ready.
4746

4847
4. Navigate to [http://localhost:8000](http://localhost:8000) in the browser. Enter some numbers, click **Add** and see the result displayed.
4948

@@ -106,7 +105,7 @@ GraalVM.run([]).then(() => {
106105
```
107106

108107
- `GraalVM.run([], {})` initializes the Wasm module and the Java runtime inside the browser.
109-
- `globalThis.adder(a, b)` calls the `add` function you exported via WebAssembly.
108+
- `globalThis.adder(a, b)` calls the `add` function you exported via WebAssembly, after the runtime is ready.
110109

111110
### Conclusion
112111

0 commit comments

Comments
 (0)