fix rename (#2501)

- suppress spurious `rename` from `commander`
- handle `AST_SymbolCatch` correctly
This commit is contained in:
Alex Lam S.L
2017-11-24 03:05:43 +08:00
committed by GitHub
parent f4e2fb9864
commit 30cfea2e7a
4 changed files with 547 additions and 3 deletions

View File

@@ -72,6 +72,7 @@ if (!program.output && program.sourceMap && program.sourceMap.url != "inline") {
"wrap"
].forEach(function(name) {
if (name in program) {
if (name == "rename" && program[name]) return;
options[name] = program[name];
}
});