{"action":"created","issue":{"url":"https://api.github.com/repos/leebyron/async-to-gen/issues/10","repository_url":"https://api.github.com/repos/leebyron/async-to-gen","labels_url":"https://api.github.com/repos/leebyron/async-to-gen/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/leebyron/async-to-gen/issues/10/comments","events_url":"https://api.github.com/repos/leebyron/async-to-gen/issues/10/events","html_url":"https://github.com/leebyron/async-to-gen/issues/10","id":170997561,"number":10,"title":"SyntaxError: Unexpected identifier yield","user":{"login":"ilkkao","id":474587,"avatar_url":"https://avatars.githubusercontent.com/u/474587?v=3","gravatar_id":"","url":"https://api.github.com/users/ilkkao","html_url":"https://github.com/ilkkao","followers_url":"https://api.github.com/users/ilkkao/followers","following_url":"https://api.github.com/users/ilkkao/following{/other_user}","gists_url":"https://api.github.com/users/ilkkao/gists{/gist_id}","starred_url":"https://api.github.com/users/ilkkao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilkkao/subscriptions","organizations_url":"https://api.github.com/users/ilkkao/orgs","repos_url":"https://api.github.com/users/ilkkao/repos","events_url":"https://api.github.com/users/ilkkao/events{/privacy}","received_events_url":"https://api.github.com/users/ilkkao/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-13T07:23:50Z","updated_at":"2016-08-13T14:35:14Z","closed_at":null,"body":"This snippet works on Chrome 54 with native async/await \r\n\r\n```\r\nasync function test() {\r\n    return !!await console.log('works');\r\n}\r\n\r\ntest();\r\n```\r\n\r\nWith `async-to-gen` it leads to parse error. Simple workaround is to write `return !!(await ....)` instead."},"comment":{"url":"https://api.github.com/repos/leebyron/async-to-gen/issues/comments/239623870","html_url":"https://github.com/leebyron/async-to-gen/issues/10#issuecomment-239623870","issue_url":"https://api.github.com/repos/leebyron/async-to-gen/issues/10","id":239623870,"user":{"login":"leebyron","id":50130,"avatar_url":"https://avatars.githubusercontent.com/u/50130?v=3","gravatar_id":"","url":"https://api.github.com/users/leebyron","html_url":"https://github.com/leebyron","followers_url":"https://api.github.com/users/leebyron/followers","following_url":"https://api.github.com/users/leebyron/following{/other_user}","gists_url":"https://api.github.com/users/leebyron/gists{/gist_id}","starred_url":"https://api.github.com/users/leebyron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leebyron/subscriptions","organizations_url":"https://api.github.com/users/leebyron/orgs","repos_url":"https://api.github.com/users/leebyron/repos","events_url":"https://api.github.com/users/leebyron/events{/privacy}","received_events_url":"https://api.github.com/users/leebyron/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T14:35:14Z","updated_at":"2016-08-13T14:35:14Z","body":"Thanks for the links. Indeed they are. \r\n\r\nAwait: https://tc39.github.io/ecmascript-asyncawait/#prod-AwaitExpression\r\nYield: https://tc39.github.io/ecma262/2016/#prod-YieldExpression\r\n\r\nNot only are the precedence rules different, but a yield can appear on its own line and is a candidate for ASI."}}
{"actor":{"display_login":"leebyron"}}