{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/2806","repository_url":"https://api.github.com/repos/facebook/flow","labels_url":"https://api.github.com/repos/facebook/flow/issues/2806/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/2806/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/2806/events","html_url":"https://github.com/facebook/flow/pull/2806","id":189168559,"number":2806,"title":"Forward abnormal-return for `while(true) { return ; }`","user":{"login":"jeffmo","id":498293,"avatar_url":"https://avatars.githubusercontent.com/u/498293?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmo","html_url":"https://github.com/jeffmo","followers_url":"https://api.github.com/users/jeffmo/followers","following_url":"https://api.github.com/users/jeffmo/following{/other_user}","gists_url":"https://api.github.com/users/jeffmo/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmo/subscriptions","organizations_url":"https://api.github.com/users/jeffmo/orgs","repos_url":"https://api.github.com/users/jeffmo/repos","events_url":"https://api.github.com/users/jeffmo/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-14T17:07:02Z","updated_at":"2016-12-02T18:05:34Z","closed_at":"2016-12-02T18:05:34Z","pull_request":{"url":"https://api.github.com/repos/facebook/flow/pulls/2806","html_url":"https://github.com/facebook/flow/pull/2806","diff_url":"https://github.com/facebook/flow/pull/2806.diff","patch_url":"https://github.com/facebook/flow/pull/2806.patch"},"body":"Before this change, the following would error stating that the function could implicitly return `undefined` (incompatible with the stated `string` return type):\r\n\r\n```js\r\nfunction f(): string {\r\n  while (true) {\r\n    return '';\r\n  }\r\n}\r\n```\r\n\r\nThis change fixes the problem only for exact `while (true)` syntactic scenarios. There's a lot more work to be done to fix it for indirect scenarios (i.e. `let t = true; while (t)`), so we punt on fixing that for now."},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/264520615","html_url":"https://github.com/facebook/flow/pull/2806#issuecomment-264520615","issue_url":"https://api.github.com/repos/facebook/flow/issues/2806","id":264520615,"user":{"login":"gabelevi","id":1887264,"avatar_url":"https://avatars.githubusercontent.com/u/1887264?v=3","gravatar_id":"","url":"https://api.github.com/users/gabelevi","html_url":"https://github.com/gabelevi","followers_url":"https://api.github.com/users/gabelevi/followers","following_url":"https://api.github.com/users/gabelevi/following{/other_user}","gists_url":"https://api.github.com/users/gabelevi/gists{/gist_id}","starred_url":"https://api.github.com/users/gabelevi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabelevi/subscriptions","organizations_url":"https://api.github.com/users/gabelevi/orgs","repos_url":"https://api.github.com/users/gabelevi/repos","events_url":"https://api.github.com/users/gabelevi/events{/privacy}","received_events_url":"https://api.github.com/users/gabelevi/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T18:05:34Z","updated_at":"2016-12-02T18:05:34Z","body":"Closing this out for now, but feel free to re-open this if you pick it back up!"}}
{"actor":{"display_login":"gabelevi"}}