-
Notifications
You must be signed in to change notification settings - Fork 570
Feature request: js.Null #145
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
Comments
Have you tried it? What happens if you give it js.Object nil?
Note, you can use |
Passing an untyped nil should work, as that gets translated to null. |
Thanks, but now github.com/gopherjs/webgl can't be compiled. |
No problem, I'll fix it. |
|
Great. Are you working on it now? If no, I'll fix this. |
I am, but I can only make a PR, I don't have push rights for https://github.com/gopherjs/webgl. /cc @ajhager Edit: Made gopherjs/webgl#8. |
Related to gopherjs/gopherjs#145. See changes in gopherjs/gopherjs@7ebd216.
By the way, to update any package automatically (ala
|
Related to gopherjs/gopherjs#145. See changes in gopherjs/gopherjs@7ebd216.
Related to gopherjs/gopherjs#145. See changes in gopherjs/gopherjs@7ebd216.
Related to gopherjs/gopherjs#145. See changes in gopherjs/gopherjs@7ebd216.
Merged gopherjs/webgl#8 |
IIUC, the initial value of js.Object and null in JavaScript are different. I found out that I need JavaScript null instead of nil when, for example, calling gl.bindFramebuffer whose second argument must be Framebuffer or null (not js.Object nil).
Now that there seems no easy way to get JavaScript null with GopherJS. can we have new API to get such null, or is there anything I missed?
The text was updated successfully, but these errors were encountered: