You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var wasmBytes, _ = ioutil.ReadFile("index.wasm")
var engine = wasmer.NewEngine()
var store = wasmer.NewStore(engine)
var module, err = wasmer.NewModule(store, wasmBytes)
var importObject = wasmer.NewImportObject()
var instance, _ = wasmer.NewInstance(module, importObject)
var foo, _ = instance.Exports.GetFunction("foo")
Summary
I'm trying to run a simple JS function, using Javy to compile the wasm file.
index.js
index.wit
javy compile index.js --wit index.wit -n index-world -o index.wasm
main.go
Problem: Instance object is null.
Error: panic: runtime error: invalid memory address or nil pointer dereference
Can javy compiled wasm run with wasmer-go? Any leads on how to dig deeper also help!
Additional details
wasmer run -e foo index.wasm
This runs correctly.
The text was updated successfully, but these errors were encountered: