-
-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
incorrect-looking // +build line #261
Comments
Thanks Russ and apologies for the delayed response. The intention you described is correct:
However, it misses one point which was that we are also intending here to support the GopherJS compiler which does not set the
Would work in the case of You are right that this is true:
I wrote it this way in hopes of being a bit more explicit:
But given this issue I presume that just (A bit unrelated, but this is another example of why #264 is probably a good call at this point.) |
Fixed by #267 |
I've been analyzing
// +build usage
in the Go ecosystem and turned up dom_wasmjs_gopherjs.go, which says:and dom_native.go which says:
These two conditions are:
dom_wasmjs_gopherjs.go:
(go1.12 && wasm && js) || js
which is a complex way of writingjs
.dom_native.go:
go1.12 && !wasm && !js
I am unsure about what exactly is intended here. From the comments in dom_native.go, it looks like the intent was for dom_wasmjs_gopherjs.go to apply to js/wasm builds and dom_native.go to apply otherwise. That would be:
dom_wasmjs_gopherjs.go:
go1.12 && js && wasm
dom_native.go:
!(go1.12 && js && wasm)
which is!go1.12 || !js || !wasm
Best,
Russ
The text was updated successfully, but these errors were encountered: