Pass mangle options to figure_out_scope and compute_char_frequence

Fix #219. Because the options were not set and `toplevel` is `false` by default, some toplevel names would sometimes not be mangled correctly.
This commit is contained in:
Richard van Velzen
2015-01-05 19:10:32 +01:00
parent 13219cebcb
commit 7f9bc9e863

View File

@@ -97,8 +97,8 @@ exports.minify = function(files, options) {
// 3. mangle
if (options.mangle) {
toplevel.figure_out_scope();
toplevel.compute_char_frequency();
toplevel.figure_out_scope(options.mangle);
toplevel.compute_char_frequency(options.mangle);
toplevel.mangle_names(options.mangle);
}