Skip to content

Commit

Permalink
fixed files form Closure #55
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent ba06183 commit dacb187
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ public Node parseHelperCode(Reducer reducer) {
}

private static boolean isReduceableFunctionExpression(Node n) {
return NodeUtil.isFunctionExpression(n);
return NodeUtil.isFunctionExpression(n)
&& !NodeUtil.isGetOrSetKey(n.getParent());
}

/**
Expand Down

0 comments on commit dacb187

Please sign in to comment.