diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-03-09 15:47:41 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-03-09 15:47:41 -0800 |
commit | 0ecad78d552f20c7dfc454489df3eba61361fa06 (patch) | |
tree | 0dc2e7c295b1721b161e47a25d515263f92be60c /tools/js-optimizer.js | |
parent | 4c95c34ca8166f49f995ea8fe082cd0aaa70d839 (diff) |
remove limitations on minified names
Diffstat (limited to 'tools/js-optimizer.js')
-rw-r--r-- | tools/js-optimizer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js index 5b2e6188..2b9064b2 100644 --- a/tools/js-optimizer.js +++ b/tools/js-optimizer.js @@ -1454,7 +1454,7 @@ function registerize(ast) { var name = node[1]; var minified = minifierInfo.globals[name]; if (minified) { - assert(!localVars[name]); // locals must not shadow globals, or else we don't know which is which + assert(!localVars[name], name); // locals must not shadow globals, or else we don't know which is which if (localVars[minified]) { // trying to minify a global into a name used locally. rename all the locals var newName = '$_newLocal_' + (nextLocal++); |