From 7ac7b0872fd8ba6866162697ac6956a737e20a04 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Wed, 20 Dec 2017 17:05:53 +0800 Subject: remove AST hack from `inline` (#2627) --- lib/compress.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') 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); -- cgit v1.2.3