Panic when calling ExportedFunction
with WASI function name
#2257
Labels
bug
Something isn't working
ExportedFunction
with WASI function name
#2257
Describe the bug
Panic when calling
ExportedFunction
on an instantiated WASI module. This might stem from a misunderstanding of how to use wazero.To Reproduce
To reproduce run the following test:
This panics with:
Expected behavior
No panic an an
api.Function
object, or a clear error message as to why callingExportedFunction
in this case is not valid.Environment (please complete the relevant information):
go version go1.22.4 darwin/arm64
github.com/tetratelabs/wazero v1.7.2
arm64
The text was updated successfully, but these errors were encountered: