{"action":"created","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/947","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/947/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/947/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/947/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/947","id":129422270,"number":947,"title":"ES6 uglify fails","user":{"login":"ggrimbert","id":15869188,"avatar_url":"https://avatars.githubusercontent.com/u/15869188?v=3","gravatar_id":"","url":"https://api.github.com/users/ggrimbert","html_url":"https://github.com/ggrimbert","followers_url":"https://api.github.com/users/ggrimbert/followers","following_url":"https://api.github.com/users/ggrimbert/following{/other_user}","gists_url":"https://api.github.com/users/ggrimbert/gists{/gist_id}","starred_url":"https://api.github.com/users/ggrimbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ggrimbert/subscriptions","organizations_url":"https://api.github.com/users/ggrimbert/orgs","repos_url":"https://api.github.com/users/ggrimbert/repos","events_url":"https://api.github.com/users/ggrimbert/events{/privacy}","received_events_url":"https://api.github.com/users/ggrimbert/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-28T11:20:55Z","updated_at":"2016-01-28T12:16:14Z","closed_at":"2016-01-28T12:16:14Z","body":"Hi,\r\n\r\nI am trying touglify my NodeJs project, starting with only one file, but I get this error : \r\n\r\n```\r\nError\r\n    at new JS_Parse_Error (eval at <anonymous> (/opt/nodeJs/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1526:18)\r\n    at js_error (eval at <anonymous> (/opt/nodeJs/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1534:11)\r\n    at croak (eval at <anonymous> (/opt/nodeJs/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2025:9)\r\n    at token_error (eval at <anonymous> (/opt/nodeJs/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2033:9)\r\n    at unexpected (eval at <anonymous> (/opt/nodeJs/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2039:9)\r\n    at semicolon (eval at <anonymous> (/opt/nodeJs/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2059:43)\r\n    at simple_statement (eval at <anonymous> (/opt/nodeJs/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2239:73)\r\n    at eval (eval at <anonymous> (/opt/nodeJs/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2112:19)\r\n    at eval (eval at <anonymous> (/opt/nodeJs/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2072:24)\r\n    at eval (eval at <anonymous> (/opt/nodeJs/lib/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2819:23)\r\n```\r\n\r\nand I'm just using the following command : \r\n```\r\n uglifyjs XXXXX/XXXX/myfile.js\r\n```\r\n\r\nThe problem appears to come from many stuff from ES6 like : \r\nanonymous functions ex : () => \r\nvariable declarations using let\r\nstring declaration used with ` and not '\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/comments/176151324","html_url":"https://github.com/mishoo/UglifyJS2/issues/947#issuecomment-176151324","issue_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/947","id":176151324,"user":{"login":"rvanvelzen","id":102603,"avatar_url":"https://avatars.githubusercontent.com/u/102603?v=3","gravatar_id":"","url":"https://api.github.com/users/rvanvelzen","html_url":"https://github.com/rvanvelzen","followers_url":"https://api.github.com/users/rvanvelzen/followers","following_url":"https://api.github.com/users/rvanvelzen/following{/other_user}","gists_url":"https://api.github.com/users/rvanvelzen/gists{/gist_id}","starred_url":"https://api.github.com/users/rvanvelzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvanvelzen/subscriptions","organizations_url":"https://api.github.com/users/rvanvelzen/orgs","repos_url":"https://api.github.com/users/rvanvelzen/repos","events_url":"https://api.github.com/users/rvanvelzen/events{/privacy}","received_events_url":"https://api.github.com/users/rvanvelzen/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T12:16:14Z","updated_at":"2016-01-28T12:16:14Z","body":"Please make sure for ES6 to use the harmony branch. For progress follow #448 "}}