{"action":"created","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1010","repository_url":"https://api.github.com/repos/mishoo/UglifyJS2","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1010/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1010/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1010/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/1010","id":140818856,"number":1010,"title":"\"Unterminated string constant\" error with v2.6.2 not present in v2.6.1","user":{"login":"AaronM04","id":829076,"avatar_url":"https://avatars.githubusercontent.com/u/829076?v=3","gravatar_id":"","url":"https://api.github.com/users/AaronM04","html_url":"https://github.com/AaronM04","followers_url":"https://api.github.com/users/AaronM04/followers","following_url":"https://api.github.com/users/AaronM04/following{/other_user}","gists_url":"https://api.github.com/users/AaronM04/gists{/gist_id}","starred_url":"https://api.github.com/users/AaronM04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AaronM04/subscriptions","organizations_url":"https://api.github.com/users/AaronM04/orgs","repos_url":"https://api.github.com/users/AaronM04/repos","events_url":"https://api.github.com/users/AaronM04/events{/privacy}","received_events_url":"https://api.github.com/users/AaronM04/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-14T22:49:54Z","updated_at":"2016-03-15T01:01:49Z","closed_at":null,"body":"Hi, so we recently did npm install for our site and our grunt uglify task started breaking out of nowhere. Here is the stack trace:\r\n\r\n```\r\nError\r\n    at new JS_Parse_Error (eval at <anonymous> (/var/www/node/client/node_modules/grunt-contrib-uglify/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:1525:18)\r\n    at js_error (eval at <anonymous> (/var/www/node/client/node_modules/grunt-contrib-uglify/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:1533:11)\r\n    at parse_error (eval at <anonymous> (/var/www/node/client/node_modules/grunt-contrib-uglify/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:1646:9)\r\n    at eval (eval at <anonymous> (/var/www/node/client/node_modules/grunt-contrib-uglify/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:1731:59)\r\n    at eval (eval at <anonymous> (/var/www/node/client/node_modules/grunt-contrib-uglify/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:1869:24)\r\n    at Object.next_token [as input] (eval at <anonymous> (/var/www/node/client/node_modules/grunt-contrib-uglify/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:1896:36)\r\n    at next (eval at <anonymous> (/var/www/node/client/node_modules/grunt-contrib-uglify/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2011:25)\r\n    at expect_token (eval at <anonymous> (/var/www/node/client/node_modules/grunt-contrib-uglify/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2044:20)\r\n    at expect (eval at <anonymous> (/var/www/node/client/node_modules/grunt-contrib-uglify/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2049:36)\r\n    at eval (eval at <anonymous> (/var/www/node/client/node_modules/grunt-contrib-uglify/node_modules/uglify-js/tools/node.js:24:4), <anonymous>:2609:13)\r\n```\r\n\r\nDigging deeper, we noticed there was an upgrade from v2.6.1 to v2.6.2 that was permitted because grunt-contrib-uglify depends on uglify-js with a caret (which allows increasing the major and patch versions).\r\n\r\nThe file in question has a multiline string. Is this an intentional error? Is there anything we can do to allow uglifying files like this? Thanks."},"comment":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/comments/196590620","html_url":"https://github.com/mishoo/UglifyJS2/issues/1010#issuecomment-196590620","issue_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1010","id":196590620,"user":{"login":"kzc","id":11593452,"avatar_url":"https://avatars.githubusercontent.com/u/11593452?v=3","gravatar_id":"","url":"https://api.github.com/users/kzc","html_url":"https://github.com/kzc","followers_url":"https://api.github.com/users/kzc/followers","following_url":"https://api.github.com/users/kzc/following{/other_user}","gists_url":"https://api.github.com/users/kzc/gists{/gist_id}","starred_url":"https://api.github.com/users/kzc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzc/subscriptions","organizations_url":"https://api.github.com/users/kzc/orgs","repos_url":"https://api.github.com/users/kzc/repos","events_url":"https://api.github.com/users/kzc/events{/privacy}","received_events_url":"https://api.github.com/users/kzc/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T01:01:49Z","updated_at":"2016-03-15T01:01:49Z","body":"@avdg @rvanvelzen @mishoo Any opinion on this issue? Leave as is or revert?"}}