{"action":"opened","issue":{"url":"https://api.github.com/repos/acornjs/acorn/issues/760","repository_url":"https://api.github.com/repos/acornjs/acorn","labels_url":"https://api.github.com/repos/acornjs/acorn/issues/760/labels{/name}","comments_url":"https://api.github.com/repos/acornjs/acorn/issues/760/comments","events_url":"https://api.github.com/repos/acornjs/acorn/issues/760/events","html_url":"https://github.com/acornjs/acorn/issues/760","id":383250466,"node_id":"MDU6SXNzdWUzODMyNTA0NjY=","number":760,"title":"Incorrect parse error for async methods of class constructors","user":{"login":"danielkalen","id":10832620,"node_id":"MDQ6VXNlcjEwODMyNjIw","avatar_url":"https://avatars2.githubusercontent.com/u/10832620?v=4","gravatar_id":"","url":"https://api.github.com/users/danielkalen","html_url":"https://github.com/danielkalen","followers_url":"https://api.github.com/users/danielkalen/followers","following_url":"https://api.github.com/users/danielkalen/following{/other_user}","gists_url":"https://api.github.com/users/danielkalen/gists{/gist_id}","starred_url":"https://api.github.com/users/danielkalen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielkalen/subscriptions","organizations_url":"https://api.github.com/users/danielkalen/orgs","repos_url":"https://api.github.com/users/danielkalen/repos","events_url":"https://api.github.com/users/danielkalen/events{/privacy}","received_events_url":"https://api.github.com/users/danielkalen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-21T18:46:17Z","updated_at":"2018-11-21T18:46:17Z","closed_at":null,"author_association":"NONE","body":"Using acron 6.0.2:\r\n```javascript\r\nclass MyClass {\r\n  constructor() {}\r\n  async emit() {}\r\n}\r\n```\r\n\r\n<details>\r\n<summary>Expected AST</summary>\r\n<p>\r\n\r\n```javascript\r\n{\r\n  \"type\": \"Program\",\r\n  \"start\": 0,\r\n  \"end\": 48,\r\n  \"body\": [\r\n    {\r\n      \"type\": \"ClassDeclaration\",\r\n      \"start\": 0,\r\n      \"end\": 48,\r\n      \"id\": {\r\n        \"type\": \"Identifier\",\r\n        \"start\": 6,\r\n        \"end\": 13,\r\n        \"name\": \"MyClass\"\r\n      },\r\n      \"superClass\": null,\r\n      \"body\": {\r\n        \"type\": \"ClassBody\",\r\n        \"start\": 14,\r\n        \"end\": 48,\r\n        \"body\": [\r\n          {\r\n            \"type\": \"MethodDefinition\",\r\n            \"start\": 18,\r\n            \"end\": 34,\r\n            \"kind\": \"constructor\",\r\n            \"static\": false,\r\n            \"computed\": false,\r\n            \"key\": {\r\n              \"type\": \"Identifier\",\r\n              \"start\": 18,\r\n              \"end\": 29,\r\n              \"name\": \"constructor\"\r\n            },\r\n            \"value\": {\r\n              \"type\": \"FunctionExpression\",\r\n              \"start\": 29,\r\n              \"end\": 34,\r\n              \"id\": null,\r\n              \"async\": true,\r\n              \"expression\": false,\r\n              \"generator\": false,\r\n              \"params\": [],\r\n              \"body\": {\r\n                \"type\": \"BlockStatement\",\r\n                \"start\": 32,\r\n                \"end\": 34,\r\n                \"body\": []\r\n              }\r\n            }\r\n          },\r\n          {\r\n            \"type\": \"MethodDefinition\",\r\n            \"start\": 37,\r\n            \"end\": 46,\r\n            \"kind\": \"method\",\r\n            \"static\": false,\r\n            \"computed\": false,\r\n            \"key\": {\r\n              \"type\": \"Identifier\",\r\n              \"start\": 37,\r\n              \"end\": 41,\r\n              \"name\": \"emit\"\r\n            },\r\n            \"value\": {\r\n              \"type\": \"FunctionExpression\",\r\n              \"start\": 41,\r\n              \"end\": 46,\r\n              \"id\": null,\r\n              \"expression\": false,\r\n              \"generator\": false,\r\n              \"params\": [],\r\n              \"body\": {\r\n                \"type\": \"BlockStatement\",\r\n                \"start\": 44,\r\n                \"end\": 46,\r\n                \"body\": []\r\n              }\r\n            }\r\n          }\r\n        ]\r\n      }\r\n    }\r\n  ],\r\n  \"sourceType\": \"module\"\r\n}\r\n```\r\n\r\n</p>\r\n</details>\r\n\r\n\r\n<details>\r\n<summary>Actual Result</summary>\r\n<p>\r\n\r\n```\r\nUnexpected token (3:8)\r\n```\r\n\r\n</p>\r\n</details>\r\n"}}
{"actor":{"display_login":"danielkalen"}}