Closed alexpitsikoulis closed 2 years ago
__getString
is js glue function (not a wasm method) and implemented in loader: https://github.com/AssemblyScript/assemblyscript/blob/main/lib/loader/index.js#L168
So what could I do , if anything, to be able to read string values from the web assembly module?
So what could I do
You need to port the js code from loader to Go
Thanks for the bug report!
Describe the bug
When trying to import the __getString function from the loader in the module it says the function does not exist. Logs from the AssemblyScript show that it is being exported but only the functions I defined in my Assembly Script file are available.
Steps to reproduce
index.ts (assemblyscript module entry file)
index.js (from assembly script folder)
main.go
If applicable, add a link to a test case (as a zip file or link to a repository we can clone).
Expected behavior
__getString should be included with the other exported functions
Actual behavior
Exports in go only show add, helloWorld (the 2 functions i defined in my assembly script file), and memory
Add any other context about the problem here.