aboutsummaryrefslogtreecommitdiff
path: root/lib/compress.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-12-16 02:16:35 +0800
committerGitHub <noreply@github.com>2017-12-16 02:16:35 +0800
commit6c686ce59342c42b7fdcf54296e28c6c6517e6ab (patch)
tree980282288163ce232e4531d49a49c167e587c0e4 /lib/compress.js
parentdb902af4c6e7a8c7e7a690591a0cd6a0d611300f (diff)
downloadtracifyjs-6c686ce59342c42b7fdcf54296e28c6c6517e6ab.tar.gz
tracifyjs-6c686ce59342c42b7fdcf54296e28c6c6517e6ab.zip
fix nested `inline` (#2602)
fixes #2601
Diffstat (limited to 'lib/compress.js')
-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