allow symbol replacement on multiple occurrences (#2472)

- all-or-nothing replacement
- avoid unmangleable names

fixes #2436
This commit is contained in:
Alex Lam S.L
2017-11-12 22:31:47 +08:00
committed by GitHub
parent 346fa12e0e
commit c6cfa04d10
3 changed files with 481 additions and 12 deletions

View File

@@ -46,8 +46,10 @@
function SymbolDef(scope, index, orig) {
this.name = orig.name;
this.orig = [ orig ];
this.eliminated = 0;
this.scope = scope;
this.references = [];
this.replaced = 0;
this.global = false;
this.mangled_name = null;
this.undeclared = false;