{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/837","labels_url":"https://api.github.com/repos/facebook/flow/issues/837/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/837/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/837/events","html_url":"https://github.com/facebook/flow/pull/837","id":107558829,"number":837,"title":"Fix and Regression test for #819","user":{"login":"danvk","id":98301,"avatar_url":"https://avatars.githubusercontent.com/u/98301?v=3","gravatar_id":"","url":"https://api.github.com/users/danvk","html_url":"https://github.com/danvk","followers_url":"https://api.github.com/users/danvk/followers","following_url":"https://api.github.com/users/danvk/following{/other_user}","gists_url":"https://api.github.com/users/danvk/gists{/gist_id}","starred_url":"https://api.github.com/users/danvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danvk/subscriptions","organizations_url":"https://api.github.com/users/danvk/orgs","repos_url":"https://api.github.com/users/danvk/repos","events_url":"https://api.github.com/users/danvk/events{/privacy}","received_events_url":"https://api.github.com/users/danvk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/flow/labels/CLA%20Signed","name":"CLA Signed","color":"eeeeee"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-09-21T17:22:39Z","updated_at":"2015-10-13T19:51:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/flow/pulls/837","html_url":"https://github.com/facebook/flow/pull/837","diff_url":"https://github.com/facebook/flow/pull/837.diff","patch_url":"https://github.com/facebook/flow/pull/837.patch"},"body":"Fixes #819 \r\nSee also #61 \r\n\r\nThis _should_ work, but I'm running into another bug. `canvastest.js` produces this error instead of the expected one:\r\n\r\n```\r\ncanvastest.js:4:11,29: call of method getContext\r\nFunction cannot be called on\r\n[LIB] dom.js:649:5,14: HTMLCanvasElement\r\n\r\nFound 1 error\r\n```\r\n\r\nThis is caused by overloading string parameters to `getContext` in `lib/dom.js`. If there's just one declaration, it works as expected.\r\n\r\nIt looks like something similar is going on for the existing `createElement` declarations. For example, this line:\r\n\r\n```\r\nvar el = document.createElement('canvas');\r\n```\r\n\r\nproduces this non-sense error:\r\n\r\n```\r\ncanvastest.js:2:10,41: call of method createElement\r\nFunction cannot be called on\r\n[LIB] dom.js:235:5,17: Document\r\n```\r\n\r\n@samwgoldman thoughts? Is this the same as #583?"},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/147830501","html_url":"https://github.com/facebook/flow/pull/837#issuecomment-147830501","issue_url":"https://api.github.com/repos/facebook/flow/issues/837","id":147830501,"user":{"login":"samwgoldman","id":254842,"avatar_url":"https://avatars.githubusercontent.com/u/254842?v=3","gravatar_id":"","url":"https://api.github.com/users/samwgoldman","html_url":"https://github.com/samwgoldman","followers_url":"https://api.github.com/users/samwgoldman/followers","following_url":"https://api.github.com/users/samwgoldman/following{/other_user}","gists_url":"https://api.github.com/users/samwgoldman/gists{/gist_id}","starred_url":"https://api.github.com/users/samwgoldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samwgoldman/subscriptions","organizations_url":"https://api.github.com/users/samwgoldman/orgs","repos_url":"https://api.github.com/users/samwgoldman/repos","events_url":"https://api.github.com/users/samwgoldman/events{/privacy}","received_events_url":"https://api.github.com/users/samwgoldman/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T19:51:49Z","updated_at":"2015-10-13T19:51:49Z","body":"Yup. This is a pretty simple change (with a nice, fun, complex detour), so\nhopefully you won't need to wait very long. :-)\n\nOn Tue, Oct 13, 2015 at 9:51 AM, Dan Vanderkam <notifications@github.com>\nwrote:\n\n> Cool! What's the next step? Does a FB person need to take this over?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/facebook/flow/pull/837#issuecomment-147830117>.\n>\n"}}