{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/7112","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/7112/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/7112/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/7112/events","html_url":"https://github.com/nodejs/node/issues/7112","id":158197330,"number":7112,"title":"Object literal spread syntax fails in constructor of extended class","user":{"login":"yanneves","id":1331877,"avatar_url":"https://avatars.githubusercontent.com/u/1331877?v=3","gravatar_id":"","url":"https://api.github.com/users/yanneves","html_url":"https://github.com/yanneves","followers_url":"https://api.github.com/users/yanneves/followers","following_url":"https://api.github.com/users/yanneves/following{/other_user}","gists_url":"https://api.github.com/users/yanneves/gists{/gist_id}","starred_url":"https://api.github.com/users/yanneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanneves/subscriptions","organizations_url":"https://api.github.com/users/yanneves/orgs","repos_url":"https://api.github.com/users/yanneves/repos","events_url":"https://api.github.com/users/yanneves/events{/privacy}","received_events_url":"https://api.github.com/users/yanneves/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-02T17:35:03Z","updated_at":"2016-06-02T17:45:14Z","closed_at":null,"body":"* **Version**: 6.2.0\r\n* **Platform**: MINGW64_NT6.1 (Windows 7 64-bit)\r\n* **Subsystem**: Parser\r\n\r\nFound the following issue using the Node v6.2.0 parser, which does not occur using Babel transpiler under `babel-es2015` preset:\r\n\r\n`test.js`\r\n```javascript\r\nclass Schema {\r\n  constructor(props) {\r\n    console.log('Works!', typeof props === 'object')\r\n  }\r\n}\r\n\r\nclass SchemaWrapper extends Schema {\r\n  constructor(props) {\r\n    super({\r\n      base: 'value',\r\n      ...props\r\n    })\r\n  }\r\n}\r\n\r\nnew SchemaWrapper({ some: 'value' })\r\n```\r\n\r\nconsole [expected]\r\n```bash\r\n> Works! true\r\n```\r\n\r\nconsole [actual]\r\n```bash\r\n> ~\\test.js:11\r\n>       ...props\r\n>       ^^^\r\n> SyntaxError: Unexpected token ...\r\n>     at Object.exports.runInThisContext (vm.js:53:16)\r\n>     at Module._compile (module.js:513:28)\r\n>     at Object.Module._extensions..js (module.js:550:10)\r\n>     at Module.load (module.js:458:32)\r\n>     at tryModuleLoad (module.js:417:12)\r\n>     at Function.Module._load (module.js:409:3)\r\n>     at Function.Module.runMain (module.js:575:10)\r\n>     at startup (node.js:160:18)\r\n>     at node.js:449:3\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/223367414","html_url":"https://github.com/nodejs/node/issues/7112#issuecomment-223367414","issue_url":"https://api.github.com/repos/nodejs/node/issues/7112","id":223367414,"user":{"login":"yanneves","id":1331877,"avatar_url":"https://avatars.githubusercontent.com/u/1331877?v=3","gravatar_id":"","url":"https://api.github.com/users/yanneves","html_url":"https://github.com/yanneves","followers_url":"https://api.github.com/users/yanneves/followers","following_url":"https://api.github.com/users/yanneves/following{/other_user}","gists_url":"https://api.github.com/users/yanneves/gists{/gist_id}","starred_url":"https://api.github.com/users/yanneves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanneves/subscriptions","organizations_url":"https://api.github.com/users/yanneves/orgs","repos_url":"https://api.github.com/users/yanneves/repos","events_url":"https://api.github.com/users/yanneves/events{/privacy}","received_events_url":"https://api.github.com/users/yanneves/received_events","type":"User","site_admin":false},"created_at":"2016-06-02T17:45:14Z","updated_at":"2016-06-02T17:45:14Z","body":"Also confirmed issue on\r\n\r\n* **Platform**: Mac OS X 10.11.5 64-bit"}}
{"actor":{"display_login":"yanneves"}}