Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 14554) |
+++ sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy) |
@@ -917,7 +917,7 @@ |
bool visitLoopInfo(HLoopBlockInformation info) { |
HExpressionInformation condition = info.condition; |
- bool isConditionExpression = isJSCondition(condition); |
+ bool isConditionExpression = condition == null || isJSCondition(condition); |
js.Loop loop; |
@@ -1044,7 +1044,9 @@ |
if (info.updates != null) { |
generateStatements(info.updates); |
} |
- if (isConditionExpression) { |
+ if (condition == null) { |
+ push(newLiteralBool(false)); |
+ } else if (isConditionExpression) { |
push(generateExpression(condition)); |
} else { |
generateStatements(condition); |