Index: tests/compiler/dart2js/js_spec_string_test.dart |
diff --git a/tests/compiler/dart2js/js_spec_string_test.dart b/tests/compiler/dart2js/js_spec_string_test.dart |
index 01c9f64a4a4db851364cd41effae42e3321725f3..fdd59da13b990a993eecd4882c5256fed77888bb 100644 |
--- a/tests/compiler/dart2js/js_spec_string_test.dart |
+++ b/tests/compiler/dart2js/js_spec_string_test.dart |
@@ -20,15 +20,16 @@ class Listener extends DiagnosticReporter { |
errorMessage = message; |
throw "error"; |
} |
- reportError(message, [infos]) { |
+ reportError(message, [infos = const <DiagnosticMessage>[]]) { |
Johnni Winther
2016/06/30 11:09:33
Analyzer warnings that popped up during developmen
|
errorMessage = |
'${message.message.arguments}'; // E.g. "{text: Duplicate tag 'new'.}" |
throw "error"; |
} |
@override |
- DiagnosticMessage createMessage(spannable, messageKind, [arguments]) { |
+ DiagnosticMessage createMessage(spannable, messageKind, |
+ [arguments = const {}]) { |
Johnni Winther
2016/06/30 11:09:33
Ditto
|
return new DiagnosticMessage(null, spannable, |
MessageTemplate.TEMPLATES[messageKind].message(arguments)); |
} |