diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/compress.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/compress.js b/lib/compress.js index dbf4e09d..a79b909d 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -4468,20 +4468,23 @@ merge(Compressor.prototype, { skipped.unshift(tail); continue; } + var orig = [], refs = []; if (id in declarations) declarations[id].forEach(function(sym) { sym.thedef = def; sym.name = def.name; - def.orig.push(sym); + orig.push(sym); }); references[id].forEach(function(sym) { sym.thedef = def; sym.name = def.name; if (sym instanceof AST_SymbolRef) { - def.references.push(sym); + refs.push(sym); } else { - def.orig.push(sym); + orig.push(sym); } }); + def.orig = orig.concat(def.orig); + def.references = refs.concat(def.references); def.fixed = tail.definition.fixed && def.fixed; merged[id] = def; break; |