aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/compress.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 3410b5a7..85cc6ddf 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -4036,8 +4036,10 @@ merge(Compressor.prototype, {
scope.var_names()[name.name] = true;
scope.variables.set(name.name, def);
scope.enclosed.push(def);
+ var symbol = make_node(AST_SymbolVar, name, name);
+ def.orig.push(symbol);
decls.unshift(make_node(AST_VarDef, name, {
- name: name,
+ name: symbol,
value: null
}));
var sym = make_node(AST_SymbolRef, name, name);