lautis / uglifier

Ruby wrapper for UglifyJS JavaScript compressor.
http://www.rubydoc.info/gems/uglifier
MIT License
613 stars 82 forks source link

Invalid JS output #52

Closed meltingice closed 11 years ago

meltingice commented 11 years ago

After upgrading to Ruby 2.0.0, Uglifier has been producing invalid output when attempting to minify the paper.js source. The offending line of code looks like this after minification:

new!function(){

I've tried configuring a lot of the options, and the only way I can get it to produce valid code is by setting beautify: true, which isn't ideal of course. This is happening within a Rails application.

lautis commented 11 years ago

This doesn't happen for me with same setup. Maybe paper.js was changed and it doesn't trigger the bug. If you have offending code somewhere, you might want to report it directly to UglifyJS.