{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2203","repository_url":"https://api.github.com/repos/babel/babel","labels_url":"https://api.github.com/repos/babel/babel/issues/2203/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2203/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2203/events","html_url":"https://github.com/babel/babel/issues/2203","id":100519790,"number":2203,"title":"Extending null throws \"Derived constructor must call super()\"","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},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-08-12T11:06:51Z","updated_at":"2016-10-04T19:47:23Z","closed_at":"2016-10-04T19:47:23Z","body":"When I do something like\r\n\r\n```javascript\r\nclass Foo extends null { hello() { return 10 } }\r\nlet x = new Foo\r\n```\r\n\r\nBabel 5.8.22 generates a constructor that contains the line `_ref.apply(this, arguments);`, which will crash  when `_ref` is null. Maybe change the output to `_ref && _ref.apply(...)`?"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/251492649","html_url":"https://github.com/babel/babel/issues/2203#issuecomment-251492649","issue_url":"https://api.github.com/repos/babel/babel/issues/2203","id":251492649,"user":{"login":"motiz88","id":2246565,"avatar_url":"https://avatars.githubusercontent.com/u/2246565?v=3","gravatar_id":"","url":"https://api.github.com/users/motiz88","html_url":"https://github.com/motiz88","followers_url":"https://api.github.com/users/motiz88/followers","following_url":"https://api.github.com/users/motiz88/following{/other_user}","gists_url":"https://api.github.com/users/motiz88/gists{/gist_id}","starred_url":"https://api.github.com/users/motiz88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/motiz88/subscriptions","organizations_url":"https://api.github.com/users/motiz88/orgs","repos_url":"https://api.github.com/users/motiz88/repos","events_url":"https://api.github.com/users/motiz88/events{/privacy}","received_events_url":"https://api.github.com/users/motiz88/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T19:47:23Z","updated_at":"2016-10-04T19:47:23Z","body":"Closing this since the final ES2015 spec now seems to allow `extends null` with an implicit constructor, and as we have [multiple][1] [tests][2] [covering][3] Babel's current `extends null` behavior.\r\n\r\n[1]: https://github.com/babel/babel/blob/4c371132ae7321f6d08567eab54a59049e07f246/packages/babel-preset-es2015/test/fixtures/esnext/es6-classes/extends-null.js\r\n[2]: https://github.com/babel/babel/blob/4c371132ae7321f6d08567eab54a59049e07f246/packages/babel-preset-es2015/test/fixtures/traceur/Classes/DefaultConstructor.js\r\n[3]: https://github.com/babel/babel/blob/4c371132ae7321f6d08567eab54a59049e07f246/packages/babel-preset-es2015/test/fixtures/traceur/Classes/ExtendStrange.js"}}
{"actor":{"display_login":"motiz88"}}