Exporting a host function with a callback as parameter #1587
Labels
1.0
Wasmer at 1.0
🧞 needs example
The issue needs an example on how to do it
❓ question
I've a question!
Summary
Hello, I am trying to export a function from the host that has a callback function as a parameter. I would like to somehow call that "guest" function in the host, but I didn't have any luck with it. I've seen a PR that added some features regarding the issue and an example, but at this point the example is gone.
Additional details
This is the function that I am exporting from the host:
I am using AssemblyScript to get the wasm file. This is how I use the exported function:
It always fails with this message:
The text was updated successfully, but these errors were encountered: