Thanks to visit codestin.com
Credit goes to github.com

Skip to content

internal/poll: fails to build on Windows #688

Open
@lifeng1992

Description

@lifeng1992

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions