Index: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (revision 14621) |
+++ sdk/lib/_internal/compiler/implementation/compile_time_constants.dart (working copy) |
@@ -301,8 +301,7 @@ |
Constant visitLiteralMap(LiteralMap node) { |
if (!node.isConst()) { |
- signalNotCompileTimeConstant(node); |
- error(node); |
+ return signalNotCompileTimeConstant(node); |
} |
List<StringConstant> keys = <StringConstant>[]; |
Map<StringConstant, Constant> map = new Map<StringConstant, Constant>(); |