{"action":"created","issue":{"url":"https://api.github.com/repos/gopherjs/gopherjs/issues/145","labels_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/145/comments","events_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/145/events","html_url":"https://github.com/gopherjs/gopherjs/issues/145","id":53257274,"number":145,"title":"Feature request: js.Null","user":{"login":"hajimehoshi","id":16950,"avatar_url":"https://avatars.githubusercontent.com/u/16950?v=3","gravatar_id":"","url":"https://api.github.com/users/hajimehoshi","html_url":"https://github.com/hajimehoshi","followers_url":"https://api.github.com/users/hajimehoshi/followers","following_url":"https://api.github.com/users/hajimehoshi/following{/other_user}","gists_url":"https://api.github.com/users/hajimehoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/hajimehoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hajimehoshi/subscriptions","organizations_url":"https://api.github.com/users/hajimehoshi/orgs","repos_url":"https://api.github.com/users/hajimehoshi/repos","events_url":"https://api.github.com/users/hajimehoshi/events{/privacy}","received_events_url":"https://api.github.com/users/hajimehoshi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-02T15:11:58Z","updated_at":"2015-01-03T04:55:55Z","closed_at":"2015-01-03T01:05:30Z","body":"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).\r\n\r\n```go\r\npackage main\r\n\r\nimport (\r\n\t\"github.com/gopherjs/gopherjs/js\"\r\n)\r\n\r\nfunc main() {\r\n\tvar null1 js.Object\r\n\tprint(null1) // Object {$key: function}\r\n\tvar null2 = js.Global.Call(\"eval\", \"null\")\r\n\tprint(null2) // null\r\n}\r\n```\r\n\r\nNow 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?"},"comment":{"url":"https://api.github.com/repos/gopherjs/gopherjs/issues/comments/68583517","html_url":"https://github.com/gopherjs/gopherjs/issues/145#issuecomment-68583517","issue_url":"https://api.github.com/repos/gopherjs/gopherjs/issues/145","id":68583517,"user":{"login":"hajimehoshi","id":16950,"avatar_url":"https://avatars.githubusercontent.com/u/16950?v=3","gravatar_id":"","url":"https://api.github.com/users/hajimehoshi","html_url":"https://github.com/hajimehoshi","followers_url":"https://api.github.com/users/hajimehoshi/followers","following_url":"https://api.github.com/users/hajimehoshi/following{/other_user}","gists_url":"https://api.github.com/users/hajimehoshi/gists{/gist_id}","starred_url":"https://api.github.com/users/hajimehoshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hajimehoshi/subscriptions","organizations_url":"https://api.github.com/users/hajimehoshi/orgs","repos_url":"https://api.github.com/users/hajimehoshi/repos","events_url":"https://api.github.com/users/hajimehoshi/events{/privacy}","received_events_url":"https://api.github.com/users/hajimehoshi/received_events","type":"User","site_admin":false},"created_at":"2015-01-03T04:55:55Z","updated_at":"2015-01-03T04:55:55Z","body":"Thanks, but now github.com/gopherjs/webgl can't be compiled."}}