diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-11-24 03:05:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-24 03:05:43 +0800 |
commit | 30cfea2e7a95fd5aaa8092ea0b305ef0be760534 (patch) | |
tree | c57d1804a91df0002de4a6e4957077d1c399fdab /test/run-tests.js | |
parent | f4e2fb9864a8c5dd6fb24870c4c09761b5914f75 (diff) | |
download | tracifyjs-30cfea2e7a95fd5aaa8092ea0b305ef0be760534.tar.gz tracifyjs-30cfea2e7a95fd5aaa8092ea0b305ef0be760534.zip |
fix `rename` (#2501)
- suppress spurious `rename` from `commander`
- handle `AST_SymbolCatch` correctly
Diffstat (limited to 'test/run-tests.js')
-rwxr-xr-x | test/run-tests.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/run-tests.js b/test/run-tests.js index 0051c6c2..e95bbb83 100755 --- a/test/run-tests.js +++ b/test/run-tests.js @@ -117,6 +117,10 @@ function run_compress_tests() { test.mangle.properties.reserved = quoted_props; U.reserve_quoted_keys(input, quoted_props); } + if (test.rename) { + input.figure_out_scope(test.mangle); + input.expand_names(test.mangle); + } var cmp = new U.Compressor(options, true); var output = cmp.compress(input); output.figure_out_scope(test.mangle); |