Fix mangling of property names which overwrite unmangleable properties

Fixes #747.
This commit is contained in:
Richard van Velzen
2015-07-31 15:56:33 +02:00
parent 958b6c2e57
commit 759b3f7d6d
3 changed files with 54 additions and 12 deletions

View File

@@ -92,6 +92,9 @@ function run_compress_tests() {
}
var input = as_toplevel(test.input);
var input_code = make_code(test.input);
if (test.mangle_props) {
input = U.mangle_properties(input, test.mangle_props);
}
var output = input.transform(cmp);
output.figure_out_scope();
output = make_code(output, false);