go-wasm
go-wasm copied to clipboard
Parsing a hello-world wasm causes an error
I prepared this Go file
package main
func main() {
println("Hello, World!")
}
and compiled it as Wasm (GOOS=js GOARCH=wasm go build -o helloworld.wasm main.go
). I found the error when passing this wasm file to Parse
.
[0x1321e3] parse section: entry 16715: read data section offset initializer: EOF
My Go version is 1.14.
Thanks!
I think EOF is an expected error and the read date should exist at the same time.
The author seems to have abandoned it. I checked out the code and its pretty nicely written. The implementation is a bit outdated since this package hasn't been updated in three years hence the errors. I know you're working on a go2cpp project and this would help in the long run if maintained.
People just need to know about it and we'll have a community to maintain it. A Wasm parser is nice package to have anyways.
@hajimehoshi you might want to try https://github.com/akupila/go-wasm/pull/4.