{"action":"created","issue":{"url":"https://api.github.com/repos/6to5/6to5/issues/781","labels_url":"https://api.github.com/repos/6to5/6to5/issues/781/labels{/name}","comments_url":"https://api.github.com/repos/6to5/6to5/issues/781/comments","events_url":"https://api.github.com/repos/6to5/6to5/issues/781/events","html_url":"https://github.com/6to5/6to5/issues/781","id":57718232,"number":781,"title":"Async function declaration being parsed as expression when followed by certain punctuators","user":{"login":"UltCombo","id":2090712,"avatar_url":"https://avatars.githubusercontent.com/u/2090712?v=3","gravatar_id":"","url":"https://api.github.com/users/UltCombo","html_url":"https://github.com/UltCombo","followers_url":"https://api.github.com/users/UltCombo/followers","following_url":"https://api.github.com/users/UltCombo/following{/other_user}","gists_url":"https://api.github.com/users/UltCombo/gists{/gist_id}","starred_url":"https://api.github.com/users/UltCombo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UltCombo/subscriptions","organizations_url":"https://api.github.com/users/UltCombo/orgs","repos_url":"https://api.github.com/users/UltCombo/repos","events_url":"https://api.github.com/users/UltCombo/events{/privacy}","received_events_url":"https://api.github.com/users/UltCombo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/6to5/6to5/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/6to5/6to5/labels/experimental","name":"experimental","color":"006b75"},{"url":"https://api.github.com/repos/6to5/6to5/labels/parser","name":"parser","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-15T05:05:23Z","updated_at":"2015-02-15T06:18:42Z","closed_at":"2015-02-15T05:46:16Z","body":"The following is parsed as an async function declaration:\r\n\r\n```js\r\nasync function g() {\r\n  return 43;\r\n}\r\n```\r\n\r\nNow if we add a line break followed by an array literal after the declaration, it fails to parse as it treats the array literal as if it were a property access:\r\n\r\n```js\r\nasync function g() {\r\n  return 43;\r\n}\r\n[];\r\n```\r\n\r\nSame behavior for the `()` punctuators, which are being wrongly treated as a function call:\r\n\r\n```js\r\nasync function g() {\r\n  return 43;\r\n}\r\n(1);\r\n```"},"comment":{"url":"https://api.github.com/repos/6to5/6to5/issues/comments/74405809","html_url":"https://github.com/6to5/6to5/issues/781#issuecomment-74405809","issue_url":"https://api.github.com/repos/6to5/6to5/issues/781","id":74405809,"user":{"login":"UltCombo","id":2090712,"avatar_url":"https://avatars.githubusercontent.com/u/2090712?v=3","gravatar_id":"","url":"https://api.github.com/users/UltCombo","html_url":"https://github.com/UltCombo","followers_url":"https://api.github.com/users/UltCombo/followers","following_url":"https://api.github.com/users/UltCombo/following{/other_user}","gists_url":"https://api.github.com/users/UltCombo/gists{/gist_id}","starred_url":"https://api.github.com/users/UltCombo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UltCombo/subscriptions","organizations_url":"https://api.github.com/users/UltCombo/orgs","repos_url":"https://api.github.com/users/UltCombo/repos","events_url":"https://api.github.com/users/UltCombo/events{/privacy}","received_events_url":"https://api.github.com/users/UltCombo/received_events","type":"User","site_admin":false},"created_at":"2015-02-15T06:18:42Z","updated_at":"2015-02-15T06:18:42Z","body":"I guess you meant https://github.com/6to5/acorn-6to5/issues/27 ?"}}