You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gopherjs test uses tempFile to create temporary files during execution
of examples. tempFile calls os.OpenFile to create a file. os.OpenFile
calls newFile, which in Go 1.9 tries to add the file to the runtime
poller.
Normally, on OSes like darwin, linux, etc., this tries to use a real
runtime poller from internal/poll package. We override that package
so that a no-op implementation (based on NaCL implementation) is used
instead.
Fixes:
Error: runtime error: native function not implemented: internal/poll.runtime_pollServerInit
After this change, some basic tests pass:
$ gopherjs test errors github.com/gopherjs/gopherjs/tests
PASS
ok errors 0.453s
PASS
ok github.com/gopherjs/gopherjs/tests 0.606s
pkg.GoFiles=stripExecutable(pkg.GoFiles) // Need to strip executable implementation files, because some of them contain package scope variables that perform (indirectly) syscalls on init.
96
+
pkg.GoFiles=excludeExecutable(pkg.GoFiles) // Need to exclude executable implementation files, because some of them contain package scope variables that perform (indirectly) syscalls on init.
0 commit comments