https://github.com/mishoo/UglifyJS
Revision 65da9acce6bd2548e5ffc7f35527ff62ff3f2fdd authored by Alex Lam S.L on 28 March 2017, 08:42:39 UTC, committed by GitHub on 28 March 2017, 08:42:39 UTC
The following code prints `1`:

var a = 1;
!function(){
  a = 4;
  try{
    throw 2;
  } catch (a) {
    var a = 3;
  }
}();
console.log(a);

fixes #1708
1 parent 67d0237
History
Tip revision: 65da9acce6bd2548e5ffc7f35527ff62ff3f2fdd authored by Alex Lam S.L on 28 March 2017, 08:42:39 UTC
handle var within catch of the same name (#1711)
Tip revision: 65da9ac
File Mode Size
.github
bin
lib
test
tools
.gitattributes -rw-r--r-- 20 bytes
.gitignore -rw-r--r-- 35 bytes
.travis.yml -rw-r--r-- 181 bytes
LICENSE -rw-r--r-- 1.3 KB
README.md -rw-r--r-- 40.5 KB
appveyor.yml -rw-r--r-- 350 bytes
package.json -rw-r--r-- 1.2 KB

README.md

back to top