From c6cfa04d10c648dc1ccdf7ac6369f4162f0a46dc Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sun, 12 Nov 2017 22:31:47 +0800 Subject: allow symbol replacement on multiple occurrences (#2472) - all-or-nothing replacement - avoid unmangleable names fixes #2436 --- lib/scope.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/scope.js') 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; -- cgit v1.2.3