fix nested inline (#2602)

fixes #2601
This commit is contained in:
Alex Lam S.L
2017-12-16 02:16:35 +08:00
committed by GitHub
parent db902af4c6
commit 6c686ce593
2 changed files with 76 additions and 0 deletions

View File

@@ -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