{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/1131","labels_url":"https://api.github.com/repos/babel/babel/issues/1131/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/1131/comments","events_url":"https://api.github.com/repos/babel/babel/issues/1131/events","html_url":"https://github.com/babel/babel/issues/1131","id":65996002,"number":1131,"title":"incorrect error message: 'this' is not allowed before super","user":{"login":"michaelficarra","id":218840,"avatar_url":"https://avatars.githubusercontent.com/u/218840?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelficarra","html_url":"https://github.com/michaelficarra","followers_url":"https://api.github.com/users/michaelficarra/followers","following_url":"https://api.github.com/users/michaelficarra/following{/other_user}","gists_url":"https://api.github.com/users/michaelficarra/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelficarra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelficarra/subscriptions","organizations_url":"https://api.github.com/users/michaelficarra/orgs","repos_url":"https://api.github.com/users/michaelficarra/repos","events_url":"https://api.github.com/users/michaelficarra/events{/privacy}","received_events_url":"https://api.github.com/users/michaelficarra/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/babel/babel/labels/invalid","name":"invalid","color":"e6e6e6"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-04-02T19:33:44Z","updated_at":"2015-05-05T07:24:01Z","closed_at":"2015-04-02T20:17:55Z","body":"I am getting this error in code that does not use `super`.\r\n\r\n```\r\nSyntaxError: src/early-error-state.js: Line 77: 'this' is not allowed before super()\r\n  75 | export class EarlyError extends Error {\r\n  76 |   constructor(node, message) {\r\n> 77 |     this.node = node;\r\n     |     ^\r\n  78 |     this.message = message;\r\n  79 |   }\r\n  80 | }\r\n```\r\n\r\nIf that doesn't reproduce the problem on its own, I can create a reduced test case.\r\n\r\n```\r\n$ babel --version\r\n5.0.1\r\n```"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/98981733","html_url":"https://github.com/babel/babel/issues/1131#issuecomment-98981733","issue_url":"https://api.github.com/repos/babel/babel/issues/1131","id":98981733,"user":{"login":"hgl","id":7038035,"avatar_url":"https://avatars.githubusercontent.com/u/7038035?v=3","gravatar_id":"","url":"https://api.github.com/users/hgl","html_url":"https://github.com/hgl","followers_url":"https://api.github.com/users/hgl/followers","following_url":"https://api.github.com/users/hgl/following{/other_user}","gists_url":"https://api.github.com/users/hgl/gists{/gist_id}","starred_url":"https://api.github.com/users/hgl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hgl/subscriptions","organizations_url":"https://api.github.com/users/hgl/orgs","repos_url":"https://api.github.com/users/hgl/repos","events_url":"https://api.github.com/users/hgl/events{/privacy}","received_events_url":"https://api.github.com/users/hgl/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T07:24:00Z","updated_at":"2015-05-05T07:24:00Z","body":"NVM, found the discussion: https://esdiscuss.org/topic/super-on-class-that-extends"}}