Skip to content

Commit

Permalink
fix(doc): update example
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-jerry-ye committed Jun 3, 2024
1 parent c32e94b commit beb7b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffi-and-wasm-host.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ For example, to use wasm compiled from above code snippet in JavaScript:

```js
WebAssembly.instantiateStreaming(fetch("xxx.wasm"), {
math: {
PI: () => Math.PI,
Math: {
cos: (d) => Math.cos(d),
},
});
```
Expand Down

0 comments on commit beb7b42

Please sign in to comment.