{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11543","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11543/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11543/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11543/events","html_url":"https://github.com/Microsoft/TypeScript/issues/11543","id":182380987,"number":11543,"title":"Generating super(...arguments) in constructor","user":{"login":"yulianovdey","id":2703323,"avatar_url":"https://avatars.githubusercontent.com/u/2703323?v=3","gravatar_id":"","url":"https://api.github.com/users/yulianovdey","html_url":"https://github.com/yulianovdey","followers_url":"https://api.github.com/users/yulianovdey/followers","following_url":"https://api.github.com/users/yulianovdey/following{/other_user}","gists_url":"https://api.github.com/users/yulianovdey/gists{/gist_id}","starred_url":"https://api.github.com/users/yulianovdey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yulianovdey/subscriptions","organizations_url":"https://api.github.com/users/yulianovdey/orgs","repos_url":"https://api.github.com/users/yulianovdey/repos","events_url":"https://api.github.com/users/yulianovdey/events{/privacy}","received_events_url":"https://api.github.com/users/yulianovdey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Needs%20More%20Info","name":"Needs More Info","color":"556b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-11T21:37:12Z","updated_at":"2016-10-12T14:51:07Z","closed_at":null,"body":"Hello!\r\n\r\nMR #10189 is causing an issue after I compile TypeScript with `target` set to `es6` and run it through Babel using `babel-preset-es2015-node4`.\r\n\r\nYou can find a repro [here](https://github.com/yulianovdey/ts-empty-constructor). Test by running `npm i && npm run compile && node dist/test.js`. To summarize, the following code:\r\n\r\n```javascript\r\nabstract class Base {\r\n  public abstract myProperty: string;\r\n}\r\n\r\nclass Child extends Base {\r\n  myProperty = 'A value';\r\n}\r\n```\r\n\r\nResults in an error:\r\n\r\n```\r\nsuper(...arguments);\r\n      ^^^\r\nSyntaxError: Unexpected token ...\r\n```\r\n\r\nCaused by the fact that spread is still being used in the constructor:\r\n\r\n```javascript\r\nclass Child extends Base {\r\n    constructor() {\r\n        super(...arguments);\r\n        this.myProperty = 'A value';\r\n    }\r\n}\r\n```\r\n\r\nNot touching `arguments` is [deliberate behavior on Babel's part](https://github.com/babel/babel/blob/3667527d04ed13a3df6298cf136e9fd87b773602/packages/babel-plugin-transform-es2015-spread/src/index.js#L3), so I'm wondering if there is a way to make the change in #10189 more compatible with Node 4 without having to transpile to es5."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/253235654","html_url":"https://github.com/Microsoft/TypeScript/issues/11543#issuecomment-253235654","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/11543","id":253235654,"user":{"login":"yulianovdey","id":2703323,"avatar_url":"https://avatars.githubusercontent.com/u/2703323?v=3","gravatar_id":"","url":"https://api.github.com/users/yulianovdey","html_url":"https://github.com/yulianovdey","followers_url":"https://api.github.com/users/yulianovdey/followers","following_url":"https://api.github.com/users/yulianovdey/following{/other_user}","gists_url":"https://api.github.com/users/yulianovdey/gists{/gist_id}","starred_url":"https://api.github.com/users/yulianovdey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yulianovdey/subscriptions","organizations_url":"https://api.github.com/users/yulianovdey/orgs","repos_url":"https://api.github.com/users/yulianovdey/repos","events_url":"https://api.github.com/users/yulianovdey/events{/privacy}","received_events_url":"https://api.github.com/users/yulianovdey/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T14:51:07Z","updated_at":"2016-10-12T14:51:07Z","body":"Thank you for your input guys. I found a relevant issue that was opened with Babel, maybe someone can provide more info there."}}
{"actor":{"display_login":"yulianovdey"}}