synchronise mangle.properties for minify() & test/compress (#2151)

This commit is contained in:
Alex Lam S.L
2017-06-23 15:53:13 +08:00
committed by GitHub
parent d58b184835
commit dc6bcaa18e
8 changed files with 91 additions and 75 deletions

View File

@@ -3114,7 +3114,9 @@ merge(Compressor.prototype, {
var comp = new Compressor(compressor.options);
ast = ast.transform(comp);
ast.figure_out_scope(mangle);
ast.mangle_names();
base54.reset();
ast.compute_char_frequency(mangle);
ast.mangle_names(mangle);
var fun;
ast.walk(new TreeWalker(function(node) {
if (fun) return true;