Open
Description
What version of Go are you using (go version)?
go version go1.9 windows/amd64
What version of GopherJS are you using ?
GopherJS 1.9-1
What did you do?
cat src/hello/main.go
package main
import (
"github.com/gopherjs/gopherjs/js"
"fmt"
)
func SayHello(name string) string {
fmt.Println("Hello", name)
return "Hello " + name
}
func main() {
js.Module.Get("exports").Set("SayHello", SayHello)
}
gopherjs build hello/main.go
What did you expect to see?
No errors
What did you see instead?
..\..\..\..\..\..\Go\src\internal\poll\fd_windows.go:367:22: invalid operation: fd.pd (variable of type pollDesc) has no field or method runtimeCtx
..\..\..\..\..\..\Go\src\internal\poll\fd_windows.go:368:22: invalid operation: fd.pd (variable of type pollDesc) has no field or method runtimeCtx
..\..\..\..\..\..\Go\src\internal\poll\fd_windows.go:157:5: invalid operation: o.fd.pd (variable of type pollDesc) has no field or method runtimeCtx
I think the bug is caused by commit 956dce4