Index: tests/compiler/dart2js/parser_test.dart |
diff --git a/tests/compiler/dart2js/parser_test.dart b/tests/compiler/dart2js/parser_test.dart |
index 048745098276405e46c4e47aefa79eeeb38927c8..4a1fcc752989f1f92ee02a5f2e0e5bc36c589ad2 100644 |
--- a/tests/compiler/dart2js/parser_test.dart |
+++ b/tests/compiler/dart2js/parser_test.dart |
@@ -306,7 +306,12 @@ class Collector extends DiagnosticReporter { |
void reportError(DiagnosticMessage message, |
[List<DiagnosticMessage> infos = const <DiagnosticMessage>[]]) { |
- reportFatalError(message.spannable); |
+ assert(token != -1); |
+ throw this; |
+ } |
+ |
+ spanFromToken(Token token) { |
+ this.token = token.kind; |
} |
void log(message) { |