package main
import (
"context"
_ "embed"
"github.com/tetratelabs/wazero"
"log"
)
//go:embed funcfiftlib.wasm
var wasmBinary []byte
func main() {
ctx := context.Background()
r := wazero.NewRuntime(ctx)
_, err := r.Instantiate(ctx, wasmBinary)
if err != nil {
log.Panicln(err)
}
}
Describe the bug
I tried to instantiate a module https://github.com/ton-community/func-js-bin/raw/main/src/funcfiftlib.wasm and get error
invalid instruction 0xfeTo Reproduce
Environment (please complete the relevant information):