{"action":"opened","issue":{"url":"https://api.github.com/repos/developit/greenlet/issues/32","repository_url":"https://api.github.com/repos/developit/greenlet","labels_url":"https://api.github.com/repos/developit/greenlet/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/developit/greenlet/issues/32/comments","events_url":"https://api.github.com/repos/developit/greenlet/issues/32/events","html_url":"https://github.com/developit/greenlet/issues/32","id":326661215,"number":32,"title":"Firefox doesn't support comments in async function","user":{"login":"JamesMilnerUK","id":8822075,"avatar_url":"https://avatars1.githubusercontent.com/u/8822075?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesMilnerUK","html_url":"https://github.com/JamesMilnerUK","followers_url":"https://api.github.com/users/JamesMilnerUK/followers","following_url":"https://api.github.com/users/JamesMilnerUK/following{/other_user}","gists_url":"https://api.github.com/users/JamesMilnerUK/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesMilnerUK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesMilnerUK/subscriptions","organizations_url":"https://api.github.com/users/JamesMilnerUK/orgs","repos_url":"https://api.github.com/users/JamesMilnerUK/repos","events_url":"https://api.github.com/users/JamesMilnerUK/events{/privacy}","received_events_url":"https://api.github.com/users/JamesMilnerUK/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-25T20:53:41Z","updated_at":"2018-05-25T20:53:41Z","closed_at":null,"author_association":"NONE","body":"More just an observation than a bug; Firefox doesn't appear to handle comments inside of the passed async function. This appears to be because it puts all the code onto one line which causes the parsing to break via a SyntaxError i.e.:\r\n\r\n```\r\nSyntaxError: missing } after function body\r\ndata:$$=async%20(data,%20stringify)%20=>%20{//%20Commentif%20(stringify)%20{data%20=%20JSON.parse(da:1:416\r\nnote: { opened at line 1, column 30\r\n```\r\n\r\nin short, this will cause an error:\r\n\r\n```javascript\r\n\tconst exampleAsyncFunc = async (data) => {\r\n            // A wild comment appears\r\n \t    return data\r\n\t}\r\n```\r\n\r\nbut this does not:\r\n\r\n```javascript\r\n\tconst exampleAsyncFunc = async (data) => {\r\n \t    return data\r\n\t}\r\n```\r\n"}}
{"actor":{"display_login":"JamesMilnerUK"}}