Never mangle arguments and keep them in their scope

Fixes #892

Helped-by: kzc
This commit is contained in:
Anthony Van de Gejuchte
2016-01-10 23:33:54 +01:00
parent ac8db977b9
commit 6605d15783
3 changed files with 44 additions and 0 deletions

View File

@@ -103,6 +103,10 @@ function run_compress_tests() {
}
var output = input.transform(cmp);
output.figure_out_scope();
if (test.mangle) {
output.compute_char_frequency(test.mangle);
output.mangle_names(test.mangle);
}
output = make_code(output, output_options);
if (expect != output) {
log("!!! failed\n---INPUT---\n{input}\n---OUTPUT---\n{output}\n---EXPECTED---\n{expected}\n\n", {