{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/5575","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/5575/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/5575/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/5575/events","html_url":"https://github.com/nodejs/node/issues/5575","id":138777494,"number":5575,"title":"Flag --harmony_destructuring is no longer working","user":{"login":"figliohulio","id":1121997,"avatar_url":"https://avatars.githubusercontent.com/u/1121997?v=3","gravatar_id":"","url":"https://api.github.com/users/figliohulio","html_url":"https://github.com/figliohulio","followers_url":"https://api.github.com/users/figliohulio/followers","following_url":"https://api.github.com/users/figliohulio/following{/other_user}","gists_url":"https://api.github.com/users/figliohulio/gists{/gist_id}","starred_url":"https://api.github.com/users/figliohulio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/figliohulio/subscriptions","organizations_url":"https://api.github.com/users/figliohulio/orgs","repos_url":"https://api.github.com/users/figliohulio/repos","events_url":"https://api.github.com/users/figliohulio/events{/privacy}","received_events_url":"https://api.github.com/users/figliohulio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/nodejs/node/labels/v8","name":"v8","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-06T09:56:44Z","updated_at":"2016-03-06T10:29:57Z","closed_at":null,"body":"I run this command: `node index.js --harmony --harmony_destructuring`\r\n`index.js`:\r\n```\r\n'use strict';\r\n\r\nfunction myFunc({firstName, lastName}) {\r\n  // ...\r\n}\r\n```\r\nPreviously, this code worked fine with this flags. But now:\r\n```\r\nfunction myFunc({name, soname}) {\r\n                ^\r\n\r\nSyntaxError: Unexpected token {\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:387:25)\r\n    at Object.Module._extensions..js (module.js:422:10)\r\n    at Module.load (module.js:357:32)\r\n    at Function.Module._load (module.js:314:12)\r\n    at Module.require (module.js:367:17)\r\n    at require (internal/module.js:16:19)\r\n    at Object.<anonymous> (/home/cat/dev/easygit/index.js:6:11)\r\n    at Module._compile (module.js:413:34)\r\n    at Object.Module._extensions..js (module.js:422:10)\r\n```\r\nHow can I use the destructuring of parameters now?\r\n\r\n* **Version**: `v5.7.1`\r\n* **Platform**: `Linux pc 4.2.0-30-generic #36-Ubuntu SMP Fri Feb 26 00:58:07 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux`\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/192867249","html_url":"https://github.com/nodejs/node/issues/5575#issuecomment-192867249","issue_url":"https://api.github.com/repos/nodejs/node/issues/5575","id":192867249,"user":{"login":"mscdex","id":54666,"avatar_url":"https://avatars.githubusercontent.com/u/54666?v=3","gravatar_id":"","url":"https://api.github.com/users/mscdex","html_url":"https://github.com/mscdex","followers_url":"https://api.github.com/users/mscdex/followers","following_url":"https://api.github.com/users/mscdex/following{/other_user}","gists_url":"https://api.github.com/users/mscdex/gists{/gist_id}","starred_url":"https://api.github.com/users/mscdex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mscdex/subscriptions","organizations_url":"https://api.github.com/users/mscdex/orgs","repos_url":"https://api.github.com/users/mscdex/repos","events_url":"https://api.github.com/users/mscdex/events{/privacy}","received_events_url":"https://api.github.com/users/mscdex/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T10:29:57Z","updated_at":"2016-03-06T10:29:57Z","body":"If that is your actual command line, you need to put all of the v8 flags *before* the script name, otherwise they are treated as arguments passed to your script:\r\n\r\n```\r\nnode --harmony --harmony_destructuring index.js\r\n```"}}