when build the code below for WASM using -opt=0 it returns error
TinyGo: 0.41.1 (with roundtrip fix)
Go: 1.24
//go:build js && wasm
package main
import (
"net/http"
)
func main() {
mux := http.NewServeMux()
http.ListenAndServe(":8080", mux)
}
Error:
❯ GOOS=js GOARCH=wasm tinygo build -opt=0 -o app.wasm
wasm-ld: error: lto.tmp: undefined symbol: internal/synctest.inBubble
the others -opt work fine
when build the code below for WASM using
-opt=0it returns errorTinyGo: 0.41.1 (with roundtrip fix)
Go: 1.24
Error:
the others
-optwork fine