Index: tests/compiler/dart2js/message_kind_helper.dart |
diff --git a/tests/compiler/dart2js/message_kind_helper.dart b/tests/compiler/dart2js/message_kind_helper.dart |
index 28d7948a1216f16baf4ad4abd5bde5063bb5ccfe..ad469079e167da82db07d737a910396d5e6e77da 100644 |
--- a/tests/compiler/dart2js/message_kind_helper.dart |
+++ b/tests/compiler/dart2js/message_kind_helper.dart |
@@ -124,7 +124,8 @@ Future<Compiler> check(MessageTemplate template, Compiler cachedCompiler) { |
Expect.isTrue(messageFound, |
'${template.kind}} does not match any in\n ' |
'${messages.join('\n ')}'); |
- Expect.isFalse(compiler.reporter.hasCrashed); |
+ var reporter = compiler.reporter; |
+ Expect.isFalse(reporter.hasCrashed); |
if (!unexpectedMessages.isEmpty) { |
for (CollectedMessage message in unexpectedMessages) { |
print("Unexpected message: $message"); |