Pass mangle options to figure_out_scope before mangling in tests

This commit is contained in:
Anthony Van de Gejuchte
2016-10-26 12:34:38 +02:00
parent 557b3e412f
commit 057de570e6
3 changed files with 137 additions and 2 deletions

View File

@@ -117,7 +117,7 @@ function run_compress_tests() {
input = U.mangle_properties(input, test.mangle_props);
}
var output = cmp.compress(input);
output.figure_out_scope();
output.figure_out_scope(test.mangle);
if (test.mangle) {
output.compute_char_frequency(test.mangle);
output.mangle_names(test.mangle);