Skip to content

Commit

Permalink
fixed files form Closure #60
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent 34f5f89 commit d1f8992
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ static TernaryValue getImpureBooleanValue(Node n) {
// ignoring side-effects
return TernaryValue.TRUE;

case Token.VOID:
return TernaryValue.FALSE;

default:
return getPureBooleanValue(n);
Expand Down Expand Up @@ -133,7 +135,10 @@ static TernaryValue getPureBooleanValue(Node n) {
return TernaryValue.FALSE;

case Token.VOID:
if (!mayHaveSideEffects(n.getFirstChild())) {
return TernaryValue.FALSE;
}
break;

case Token.NAME:
String name = n.getString();
Expand Down

0 comments on commit d1f8992

Please sign in to comment.