Commit dc66801
authored
Small corrections to Javascript section (#278)
* use `add.add`, not just `add`, in Node example
in "Running a Component from JavaScript Applications (including the Browser)" section, what is exported from `./dist/transpiled/adder.js` is an `add` object and not a function.
You can see this difference in the example application at https://github.com/bytecodealliance/jco/blob/b2e8641d15dbc25a1d68b66451ab670a47a963d5/examples/components/adder/run-transpiled.js
* fix "AKA" on `reverse-string`
I'm not 100% sure of this, but I think this full `example:string-reverse/reverse.reverse-string` path is meant to break down as:
* package: `example:string-reverse`
* interface: `reverse`
* function name: `reverse-string`
If so, then the first part should be `example:string-reverse` and not `example:reverse-string`1 parent a3b4d15 commit dc66801
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
0 commit comments