Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(90)

Unified Diff: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart

Issue 11364134: Merge libv1. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Reupload due to error Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
diff --git a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
index 0b1a61ee291a667f1d4e3b6b35af0a33106b6c74..e005cd7bba52e4bd0488c9d58a1d8ddeeac64166 100644
--- a/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
+++ b/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart
@@ -301,8 +301,7 @@ class CompileTimeConstantEvaluator extends Visitor {
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>();
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/colors.dart ('k') | sdk/lib/_internal/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698