Skip to content

Commit

Permalink
fixed files form Closure #20
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 4423682 commit 8288fd3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ private Node tryFoldSimpleFunctionCall(Node n) {
// slightly different semantics than '' + (a). See
// http://code.google.com/p/closure-compiler/issues/detail?id=759
Node value = callTarget.getNext();
if (value != null) {
if (value != null && value.getNext() == null &&
NodeUtil.isImmutableValue(value)) {
Node addition = IR.add(
IR.string("").srcref(callTarget),
value.detachFromParent());
Expand Down

0 comments on commit 8288fd3

Please sign in to comment.