Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions wasm/README.md
Original file line number Diff line number Diff line change
@@ -171,8 +171,8 @@ Stay tuned!

## Embedding GraalWasm inside other programs

GraalWasm can be accessed programmatically with the
[Polyglot API](https://www.graalvm.org/docs/reference-manual/polyglot/),
GraalWasm can be accessed programmatically with the Polyglot API,
which allows embedding GraalWasm into user programs.

Here is a simple example of how to run a WebAssembly program using GraalWasm
from a Java application:
@@ -191,3 +191,6 @@ Value mainFunction = context.getBindings("wasm").getMember("_main");
mainFunction.execute();
```

For more Polyglot-related examples, consult the documentation at the
[GraalVM website](https://www.graalvm.org/docs/reference-manual/polyglot/).

0 comments on commit 0c50477

Please sign in to comment.