{"action":"created","issue":{"url":"https://api.github.com/repos/ternjs/acorn/issues/486","repository_url":"https://api.github.com/repos/ternjs/acorn","labels_url":"https://api.github.com/repos/ternjs/acorn/issues/486/labels{/name}","comments_url":"https://api.github.com/repos/ternjs/acorn/issues/486/comments","events_url":"https://api.github.com/repos/ternjs/acorn/issues/486/events","html_url":"https://github.com/ternjs/acorn/issues/486","id":193972247,"number":486,"title":"Incorrect early error when `await` used as identifier outside `async` function","user":{"login":"Kovensky","id":73085,"avatar_url":"https://avatars.githubusercontent.com/u/73085?v=3","gravatar_id":"","url":"https://api.github.com/users/Kovensky","html_url":"https://github.com/Kovensky","followers_url":"https://api.github.com/users/Kovensky/followers","following_url":"https://api.github.com/users/Kovensky/following{/other_user}","gists_url":"https://api.github.com/users/Kovensky/gists{/gist_id}","starred_url":"https://api.github.com/users/Kovensky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kovensky/subscriptions","organizations_url":"https://api.github.com/users/Kovensky/orgs","repos_url":"https://api.github.com/users/Kovensky/repos","events_url":"https://api.github.com/users/Kovensky/events{/privacy}","received_events_url":"https://api.github.com/users/Kovensky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-07T06:55:26Z","updated_at":"2016-12-07T09:38:34Z","closed_at":null,"body":"This affects webpack when it tries to parse the output of babel's async generators transform in combination with the function name transform, or even just parse anything with `{ await: function () {}}` that goes through `transform-es2015-function-name`.\r\n\r\nSee https://github.com/babel/babel/issues/4952 and https://github.com/webpack/webpack/issues/3432 for related bugs.\r\n\r\n`await` is only a reserved word when used _inside_ an `async` function, so it should not cause a parse error when used inside a regular function. This happens even when `ecmaVersion` is set to `7` or `8`.\r\n\r\nCompare http://astexplorer.net/#/ZocUJZP7BT and http://astexplorer.net/#/ZocUJZP7BT/1 (result of the function-name transform)."},"comment":{"url":"https://api.github.com/repos/ternjs/acorn/issues/comments/265400524","html_url":"https://github.com/ternjs/acorn/issues/486#issuecomment-265400524","issue_url":"https://api.github.com/repos/ternjs/acorn/issues/486","id":265400524,"user":{"login":"marijnh","id":144427,"avatar_url":"https://avatars.githubusercontent.com/u/144427?v=3","gravatar_id":"","url":"https://api.github.com/users/marijnh","html_url":"https://github.com/marijnh","followers_url":"https://api.github.com/users/marijnh/followers","following_url":"https://api.github.com/users/marijnh/following{/other_user}","gists_url":"https://api.github.com/users/marijnh/gists{/gist_id}","starred_url":"https://api.github.com/users/marijnh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marijnh/subscriptions","organizations_url":"https://api.github.com/users/marijnh/orgs","repos_url":"https://api.github.com/users/marijnh/repos","events_url":"https://api.github.com/users/marijnh/events{/privacy}","received_events_url":"https://api.github.com/users/marijnh/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T09:38:34Z","updated_at":"2016-12-07T09:38:34Z","body":"Reproducing with astexplorer doesn't help much if I can't reproduce it with the current Acorn library. What exact code string and options argument do I need to pass to get the error?"}}
{"actor":{"display_login":"marijnh"}}