mishoo/UglifyJS — pull request #334 by kennethkufluk (2012-03-06 20:59:39+00:00)
Title: Don't generate names listed in options.except

We use options.except to ignore some globally-defined functions, such as $ or _.
Those names won't get mangled.
But currently, Uglify will still create new names with those names, which can cause clashes.

I've passed the options hash through to next_mangled() so it can check.
If the options hash isn't passed, the behaviour defaults to before.
I've also added a test.