Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UglifyJS compressing causes Range Error #60

Merged
merged 1 commit into from
Jan 8, 2013
Merged

UglifyJS compressing causes Range Error #60

merged 1 commit into from
Jan 8, 2013

Commits on Jan 7, 2013

  1. Letting uglify-js2 work better with this function

    UglifyJS2 with compression enabled and default options will see the line
        "" + this.toString()
    and minify it into this line
    	"" + this
    and that normally should work, but the .valueOf() function then falls into
    an infinite loop.  Assigning the same function to both .toString() and
    .valueOf() not only eliminates this problem, but it also shrinks the code an
    eensy weensy bit.
    fidian committed Jan 7, 2013
    Configuration menu
    Copy the full SHA
    2f72c33 View commit details
    Browse the repository at this point in the history