Index: pkg/compiler/lib/src/js_backend/codegen/unsugar.dart |
diff --git a/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart b/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart |
index 494828e8cd9909f5cf028e6b0dcf70559fb74ff0..045e7664a039764ab37e32a628d66fd21b20b9d9 100644 |
--- a/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart |
+++ b/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart |
@@ -82,15 +82,21 @@ class UnsugarVisitor extends RecursiveVisitor { |
} |
Constant get trueConstant { |
- return new Constant(new TrueConstantValue()); |
+ return new Constant( |
+ new BoolConstantExpression(true), |
+ new TrueConstantValue()); |
} |
Constant get falseConstant { |
- return new Constant(new FalseConstantValue()); |
+ return new Constant( |
+ new BoolConstantExpression(false), |
+ new FalseConstantValue()); |
} |
Constant get nullConstant { |
- return new Constant(new NullConstantValue()); |
+ return new Constant( |
+ new NullConstantExpression(), |
+ new NullConstantValue()); |
} |
void insertLetPrim(Primitive primitive, Expression node) { |