Stream: jco

Topic: ✔ Is this is a jco or wasm-tools (or wit-bindgen) bug?


view this post on Zulip Victor Adossi (Jul 07 2025 at 16:21):

Glad you were able to get it working :tada:

If you can make progress without async (for now), you should be good to go.

It's a bit confusing, but the async keyword is actually not required to have your function be async on the JS side!

For example: https://github.com/bytecodealliance/jco/blob/d93c1976e226ed60425147e1bd92a6a7483b20d5/examples/components/node-fetch/component.js#L11

JavaScript toolchain for working with WebAssembly Components - bytecodealliance/jco

view this post on Zulip Victor Adossi (Jul 07 2025 at 16:22):

So I'm not sure if you were adding the async hint to try to ensure that you could use an async function and do some awaiting, or if you really wanted to tap into Preview3 functionality. Either way, that example is hopefully useful.

view this post on Zulip Notification Bot (Jul 07 2025 at 16:22):

Victor Adossi has marked this topic as resolved.


Last updated: Dec 06 2025 at 06:05 UTC