-
Notifications
You must be signed in to change notification settings - Fork 996
Closed
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Using bytes.Compare causes a runtime error:
package main
import "bytes"
func main() {
bytes.Compare([]byte{1}, []byte{1})
}Error:
Uncaught (in promise) LinkError: WebAssembly.instantiate(): Import #0 module="env" function="internal/bytealg.Compare" error: function import requires a callable
Compiled using the 0.12.0 docker image:
docker run ... \
tinygo/tinygo:0.12.0 tinygo build -o /dist/exp.wasm -target wasm --no-debug exp
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working