Skip to content

Commit

Permalink
remove AST hack from inline (#2627)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlamsl committed Dec 20, 2017
1 parent 86ae588 commit 7ac7b08
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/compress.js
Expand Up @@ -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);
Expand Down

0 comments on commit 7ac7b08

Please sign in to comment.