fix reduce_vars on AST_Arrow (#2091)

fixes #2090
This commit is contained in:
Alex Lam S.L
2017-06-14 16:40:37 +08:00
committed by GitHub
parent a7971f4e34
commit 68138f2281
2 changed files with 51 additions and 1 deletions

View File

@@ -363,7 +363,7 @@ merge(Compressor.prototype, {
safe_ids = save_ids;
return true;
}
if (node instanceof AST_Function) {
if (node instanceof AST_Function || node instanceof AST_Arrow) {
push();
var iife;
if (!node.name