Closed
Description
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 0xfe
To Reproduce
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)
}
}
Environment (please complete the relevant information):
- Go version: 1.20.2
- wazero Version: v1.5.1-0.20230925231903-ed8566988007
- Host architecture: amd64