aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js
index 0fac3259..8c17422d 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -3942,6 +3942,7 @@ merge(Compressor.prototype, {
expressions.unshift(value || make_node(AST_Undefined, self));
}
} else {
+ scope.var_names()[name.name] = true;
decls.unshift(make_node(AST_VarDef, name, {
name: name,
value: null