Index: dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
diff --git a/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart b/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
index baaef0ba5bf4932824591a6cd7756eb6ef9cf25b..89e783b293d5aabc13a1593cf1b6d50cea63db3c 100644 |
--- a/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
+++ b/dart/sdk/lib/_internal/compiler/implementation/compile_time_constants.dart |
@@ -744,7 +744,9 @@ class TryCompileTimeConstantEvaluator extends CompileTimeConstantEvaluator { |
error(Node node) { |
// Just fail without reporting it anywhere. |
- throw new CompileTimeConstantError(MessageKind.NOT_A_COMPILE_TIME_CONSTANT); |
+ throw new CompileTimeConstantError( |
+ MessageKind.NOT_A_COMPILE_TIME_CONSTANT, const {}, |
+ compiler.terseDiagnostics); |
} |
} |