{"action":"created","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1043","repository_url":"https://api.github.com/repos/mishoo/UglifyJS2","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1043/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1043/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1043/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/1043","id":147967860,"number":1043,"title":"[ES6] Support for generators","user":{"login":"rr-","id":1045476,"avatar_url":"https://avatars.githubusercontent.com/u/1045476?v=3","gravatar_id":"","url":"https://api.github.com/users/rr-","html_url":"https://github.com/rr-","followers_url":"https://api.github.com/users/rr-/followers","following_url":"https://api.github.com/users/rr-/following{/other_user}","gists_url":"https://api.github.com/users/rr-/gists{/gist_id}","starred_url":"https://api.github.com/users/rr-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rr-/subscriptions","organizations_url":"https://api.github.com/users/rr-/orgs","repos_url":"https://api.github.com/users/rr-/repos","events_url":"https://api.github.com/users/rr-/events{/privacy}","received_events_url":"https://api.github.com/users/rr-/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-13T07:15:53Z","updated_at":"2016-04-13T12:28:20Z","closed_at":null,"body":"I'm on Harmony branch. Following:\r\n\r\n```es6\r\nfunction* range(start=0, end=null, step=1) {\r\n    if (end == null) {\r\n        end = start;\r\n        start = 0;\r\n    }\r\n\r\n    for (let i = start; i < end; i += step) {\r\n        yield i;\r\n    }\r\n}\r\n```\r\n\r\ncauses error:\r\n\r\n```log\r\nParse error at js/util/misc.js:1,8\r\nUnexpected token: operator (*)\r\nError\r\n    at new JS_Parse_Error (eval at <anonymous> (/home/rr-/src/maintained/szurubooru/client/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1839:18)\r\n    at js_error (eval at <anonymous> (/home/rr-/src/maintained/szurubooru/client/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:1847:11)\r\n    at croak (eval at <anonymous> (/home/rr-/src/maintained/szurubooru/client/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2360:9)\r\n    at token_error (eval at <anonymous> (/home/rr-/src/maintained/szurubooru/client/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2368:9)\r\n    at unexpected (eval at <anonymous> (/home/rr-/src/maintained/szurubooru/client/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2374:9)\r\n    at function_ (eval at <anonymous> (/home/rr-/src/maintained/szurubooru/client/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2701:13)\r\n    at eval (eval at <anonymous> (/home/rr-/src/maintained/szurubooru/client/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2499:24)\r\n    at eval (eval at <anonymous> (/home/rr-/src/maintained/szurubooru/client/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:2407:31)\r\n    at eval (eval at <anonymous> (/home/rr-/src/maintained/szurubooru/client/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:3624:23)\r\n    at Object.parse (eval at <anonymous> (/home/rr-/src/maintained/szurubooru/client/node_modules/uglify-js/tools/node.js:22:1), <anonymous>:3634:7)\r\n```"},"comment":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/comments/209406323","html_url":"https://github.com/mishoo/UglifyJS2/issues/1043#issuecomment-209406323","issue_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1043","id":209406323,"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-04-13T12:28:20Z","updated_at":"2016-04-13T12:28:20Z","body":"I just merged #959, but I think it doesn't compress completely correctly yet - the `yield` statement is dropped."}}