{"action":"opened","issue":{"url":"https://api.github.com/repos/google/closure-compiler/issues/769","labels_url":"https://api.github.com/repos/google/closure-compiler/issues/769/labels{/name}","comments_url":"https://api.github.com/repos/google/closure-compiler/issues/769/comments","events_url":"https://api.github.com/repos/google/closure-compiler/issues/769/events","html_url":"https://github.com/google/closure-compiler/issues/769","id":53291094,"number":769,"title":"Closure Compiler fails to properly remove comments from Pixi.js source files.","user":{"login":"RubrikBonnier","id":10036592,"avatar_url":"https://avatars.githubusercontent.com/u/10036592?v=3","gravatar_id":"","url":"https://api.github.com/users/RubrikBonnier","html_url":"https://github.com/RubrikBonnier","followers_url":"https://api.github.com/users/RubrikBonnier/followers","following_url":"https://api.github.com/users/RubrikBonnier/following{/other_user}","gists_url":"https://api.github.com/users/RubrikBonnier/gists{/gist_id}","starred_url":"https://api.github.com/users/RubrikBonnier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubrikBonnier/subscriptions","organizations_url":"https://api.github.com/users/RubrikBonnier/orgs","repos_url":"https://api.github.com/users/RubrikBonnier/repos","events_url":"https://api.github.com/users/RubrikBonnier/events{/privacy}","received_events_url":"https://api.github.com/users/RubrikBonnier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-03T02:13:15Z","updated_at":"2015-01-03T02:13:15Z","closed_at":null,"body":"Hello. I've noticed very bizarre results from running Closure Compiler on my project using Pixi.js. I decided to make a couple of minimal tests to make sure it's not my fault. Here's what I ran:\r\n\r\njava -jar compiler.jar --js pixi.js --js_output_file pixi-done.js --compilation_level ADVANCED_OPTIMIZATIONS\r\njava -jar compiler.jar --js pixi.dev.js --js_output_file pixi.dev-done.js --compilation_level ADVANCED_OPTIMIZATIONS\r\n\r\nThe finished .js files, after going through CC, still contain comments, only with the asterisks on each row (inside the comments) removed. Basically, the way that Pixi.js (and possibly other libraries) style their JS comments seems to confuse CC.\r\n\r\nHere are the actual files I am using:\r\n\r\nhttps://raw.githubusercontent.com/GoodBoyDigital/pixi.js/master/bin/pixi.js\r\nhttps://raw.githubusercontent.com/GoodBoyDigital/pixi.js/master/bin/pixi.dev.js\r\n\r\nThey each get slightly different results, and in my actual project, it even causes syntax errors (that could be somehow my fault, but it seems to be related to this).\r\n\r\nCan somebody please tell me what's going on? Is this simply a bug in CC? Am I doing something horribly wrong? This is not my first time using CC; I've been using it for a few years now.\r\n\r\nThe only workaround I've found is to run the same CC command twice in a row (requires a bit of fiddling with the file names). However, it feels really silly and stupid. I don't like the feeling that CC isn't \"doing all of its job in one go\".\r\n\r\nSince CC is an extremely advanced piece of software, coded by very smart people, something so simply as stripping out comments seems too stupid to be an actual bug. Still, who knows? It will be interesting to see what you say about this."}}