{"action":"created","issue":{"url":"https://api.github.com/repos/babel/babel/issues/893","labels_url":"https://api.github.com/repos/babel/babel/issues/893/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/893/comments","events_url":"https://api.github.com/repos/babel/babel/issues/893/events","html_url":"https://github.com/babel/babel/issues/893","id":58898844,"number":893,"title":"super() does not work","user":{"login":"SanderLi","id":2720927,"avatar_url":"https://avatars.githubusercontent.com/u/2720927?v=3","gravatar_id":"","url":"https://api.github.com/users/SanderLi","html_url":"https://github.com/SanderLi","followers_url":"https://api.github.com/users/SanderLi/followers","following_url":"https://api.github.com/users/SanderLi/following{/other_user}","gists_url":"https://api.github.com/users/SanderLi/gists{/gist_id}","starred_url":"https://api.github.com/users/SanderLi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SanderLi/subscriptions","organizations_url":"https://api.github.com/users/SanderLi/orgs","repos_url":"https://api.github.com/users/SanderLi/repos","events_url":"https://api.github.com/users/SanderLi/events{/privacy}","received_events_url":"https://api.github.com/users/SanderLi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-25T13:09:28Z","updated_at":"2015-02-25T13:17:13Z","closed_at":"2015-02-25T13:17:13Z","body":"Have 2 classes \r\n\r\n```javascript \r\nexport default\r\n\r\nclass Teste {\r\n    constructor() {\r\n        console.log('Hello world!');\r\n    }\r\n}\r\n```\r\n```javascript\r\nimport Teste from './teste'\r\n\r\nexport default\r\n\r\nclass Test extends Teste {\r\n\r\n    constructor() {\r\n        super();\r\n    }\r\n}\r\n```\r\n\r\nError in console :dizzy_face:\r\n\r\n`Uncaught SyntaxError: Unexpected token {`\r\n`Potentially unhandled rejection [3] Error loading \"editor/test\"`\r\n`Error evaluating`\r\n`Uncaught SyntaxError: Unexpected token { (WARNING: non-Error used)`\r\n\r\nFinal code\r\n```javascript\r\nSystem.register([\"./teste\"], function(_export) {\r\n    \"use strict\";\r\n    var Teste, _get, _inherits, _classCallCheck, Test;\r\n    return {setters: [function(_teste) {\r\n                Teste = _teste[\"default\"];\r\n            }],execute: function() {\r\n            _get = function get(object, property, receiver) {\r\n                var desc = Object.getOwnPropertyDescriptor(object, property);\r\n                if (desc === undefined) {\r\n                    var parent = Object.getPrototypeOf(object);\r\n                    if (parent === null) {\r\n                        return undefined;\r\n                    } else {\r\n                        return get(parent, property, receiver);\r\n                    }\r\n                }\r\n                elseif(\"value\" in desc && desc.writable)\r\n                {\r\n                    return desc.value;\r\n                }\r\n                else\r\n                {\r\n                    var getter = desc.get;\r\n                    if (getter === undefined) {\r\n                        return undefined;\r\n                    }\r\n                    return getter.call(receiver);\r\n                }\r\n            };\r\n            _inherits = function(subClass, superClass) {\r\n                if (typeof superClass !== \"function\" && superClass !== null) {\r\n                    throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\r\n                }\r\n                subClass.prototype = Object.create(superClass && superClass.prototype, {constructor: {value: subClass,enumerable: false,writable: true,configurable: true}});\r\n                if (superClass)\r\n                    subClass.__proto__ = superClass;\r\n            };\r\n            _classCallCheck = function(instance, Constructor) {\r\n                if (!(instance instanceof Constructor)) {\r\n                    throw new TypeError(\"Cannot call a class as a function\");\r\n                }\r\n            };\r\n            Test = (function(Teste) {\r\n                function Test() {\r\n                    _classCallCheck(this, Test);\r\n                    _get(Object.getPrototypeOf(Test.prototype), \"constructor\", this).call(this);\r\n                }\r\n                _inherits(Test, Teste);\r\n                return Test;\r\n            })(Teste);\r\n            _export(\"default\", Test);\r\n        }};\r\n});\r\n```\r\n\r\nWithout calling super method, all work fine. Any idea?\r\n"},"comment":{"url":"https://api.github.com/repos/babel/babel/issues/comments/75957691","html_url":"https://github.com/babel/babel/issues/893#issuecomment-75957691","issue_url":"https://api.github.com/repos/babel/babel/issues/893","id":75957691,"user":{"login":"sebmck","id":853712,"avatar_url":"https://avatars.githubusercontent.com/u/853712?v=3","gravatar_id":"","url":"https://api.github.com/users/sebmck","html_url":"https://github.com/sebmck","followers_url":"https://api.github.com/users/sebmck/followers","following_url":"https://api.github.com/users/sebmck/following{/other_user}","gists_url":"https://api.github.com/users/sebmck/gists{/gist_id}","starred_url":"https://api.github.com/users/sebmck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebmck/subscriptions","organizations_url":"https://api.github.com/users/sebmck/orgs","repos_url":"https://api.github.com/users/sebmck/repos","events_url":"https://api.github.com/users/sebmck/events{/privacy}","received_events_url":"https://api.github.com/users/sebmck/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T13:17:13Z","updated_at":"2015-02-25T13:17:13Z","body":"Yeah, I fixed this in a previous version. You can either upgrade to the latest (v4.5.1) or remove the `compact` option."}}