diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-11-12 22:31:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-12 22:31:47 +0800 |
commit | c6cfa04d10c648dc1ccdf7ac6369f4162f0a46dc (patch) | |
tree | aeb9d50d1ad0b01114877e18c2d995528f0776dc /lib/scope.js | |
parent | 346fa12e0e67ed9418da4df91f72b41a857ef81f (diff) | |
download | tracifyjs-c6cfa04d10c648dc1ccdf7ac6369f4162f0a46dc.tar.gz tracifyjs-c6cfa04d10c648dc1ccdf7ac6369f4162f0a46dc.zip |
allow symbol replacement on multiple occurrences (#2472)
- all-or-nothing replacement
- avoid unmangleable names
fixes #2436
Diffstat (limited to 'lib/scope.js')
-rw-r--r-- | lib/scope.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/scope.js b/lib/scope.js index 8e766a56..0d2a7aeb 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -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; |