{"action":"closed","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1148","repository_url":"https://api.github.com/repos/mishoo/UglifyJS2","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1148/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1148/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/1148/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/1148","id":161111273,"number":1148,"title":"2.6.3 breaks compatibility with Nashorn","user":{"login":"nha","id":1968291,"avatar_url":"https://avatars.githubusercontent.com/u/1968291?v=3","gravatar_id":"","url":"https://api.github.com/users/nha","html_url":"https://github.com/nha","followers_url":"https://api.github.com/users/nha/followers","following_url":"https://api.github.com/users/nha/following{/other_user}","gists_url":"https://api.github.com/users/nha/gists{/gist_id}","starred_url":"https://api.github.com/users/nha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nha/subscriptions","organizations_url":"https://api.github.com/users/nha/orgs","repos_url":"https://api.github.com/users/nha/repos","events_url":"https://api.github.com/users/nha/events{/privacy}","received_events_url":"https://api.github.com/users/nha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-06-20T03:35:46Z","updated_at":"2016-06-21T09:02:15Z","closed_at":"2016-06-21T09:02:15Z","body":"There seems to be a regression in 2.6.3 that makes the code produced by `uglifyjs --self`, as described here https://github.com/mishoo/UglifyJS2/issues/122 not compatible with the Nashorn JS engine anymore.\r\n\r\nThe following versions (and possibly some below) work for me: \r\n- 2.5.0\r\n- 2.6.0\r\n- 2.6.1\r\n- 2.6.2\r\n\r\nHowever since `2.6.3` there is an exception thrown : \r\n\r\n```\r\n#error {\r\n :cause \"ReferenceError: \\\"UglifyJS\\\" is not defined\"\r\n :via\r\n [{:type javax.script.ScriptException\r\n   :message \"ReferenceError: \\\"UglifyJS\\\" is not defined in <eval> at line number 9\"\r\n   :at [jdk.nashorn.api.scripting.NashornScriptEngine throwAsScriptException \"NashornScriptEngine.java\" 467]}\r\n  {:type jdk.nashorn.internal.runtime.ECMAException\r\n   :message \"ReferenceError: \\\"UglifyJS\\\" is not defined\"\r\n   :at [jdk.nashorn.internal.runtime.ECMAErrors error \"ECMAErrors.java\" 57]\r\n```"}}
{"actor":{"display_login":"rvanvelzen"}}