{"action":"created","issue":{"url":"https://api.github.com/repos/6to5/6to5/issues/385","labels_url":"https://api.github.com/repos/6to5/6to5/issues/385/labels{/name}","comments_url":"https://api.github.com/repos/6to5/6to5/issues/385/comments","events_url":"https://api.github.com/repos/6to5/6to5/issues/385/events","html_url":"https://github.com/6to5/6to5/issues/385","id":53339354,"number":385,"title":"Spec Issue: super ","user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/6to5/6to5/labels/parser","name":"parser","color":"207de5"},{"url":"https://api.github.com/repos/6to5/6to5/labels/spec+compliancy","name":"spec compliancy","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-04T15:32:09Z","updated_at":"2015-01-04T19:07:38Z","closed_at":null,"body":"`super()` within non-constructor method works, but should (unfortunately) not.\r\n\r\n```js\r\nclass Foo() {\r\n  name() {\r\n    return 'Foo';\r\n  }  \r\n}\r\n\r\nclass Bar() {\r\n  name() {\r\n    return super(); // should throw, as it is only to be used in the constructor\r\n  }\r\n\r\n  name() {\r\n    return super.name(); // will work\r\n  }\r\n}\r\n```\r\n\r\n\r\n6to5 emits the following for both `super()` and `super.name()`\r\n\r\n```js\r\n Foo.prototype.name = function () {\r\n    _Bar.prototype.name.call(this);\r\n  };\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/6to5/6to5/issues/comments/68644499","html_url":"https://github.com/6to5/6to5/issues/385#issuecomment-68644499","issue_url":"https://api.github.com/repos/6to5/6to5/issues/385","id":68644499,"user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"created_at":"2015-01-04T19:07:38Z","updated_at":"2015-01-04T19:07:38Z","body":"> in minor releases, so that people who need their code not to break can restrict it to patch releases.\r\n\r\n+1\r\n\r\nAlso, it might be good to annotate breaking changes clearly in the changelog\r\n\r\n2.6.0\r\n------\r\n\r\n* **[Breaking change]** something something super\r\n* something else non-breaking\r\n"}}