-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Variable created in catch(err) overrides external variable #1337
Comments
Please update uglify to the latest version |
|
hmm I was actually about to close it because it doesn't seem to appear in 2.7.0 and 2.7.3 $ uglifyjs --version
uglify-js 2.6.4
$ uglifyjs a.js --compress unused
WARN: Dropping unused variable e [a.js:2,8]
!function(){return function(){console.log(e);try{}catch(e){}}()}(); $ uglifyjs --version
uglify-js 2.7.3
$ uglifyjs a.js --compress unused
!function(){var e="I’m gooooooooone!";return function(){console.log(e);try{}catch(e){}}()}(); Is there a regression? |
Cool, closing then :) |
@bfred-it First I'd like to congratulate you for filing Issue 1337. You can claim your prize at the door. Your test case is a
The default for
--support-ie8
--screw-ie8
|
Gotcha! Thanks for the explanation! |
Results in:
But it's minified to:
which results in:
Tested on: https://github.com/Skalman/UglifyJS-online
The text was updated successfully, but these errors were encountered: