Commit 45ebfa0
Fix wasm docs for tinygo 0.26.0
As of 0.26.0 the go //export directive for functions defined in JS,
otherwise we get a `tinygo:wasm-ld: error` of `undefined symbol`.
Along with this change the `main.` package prefix is no longer required.
Thanks to @camh- for working this out first!
Issue: tinygo-org/tinygo#32831 parent a60ab04 commit 45ebfa0
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
0 commit comments