Index: tests/compiler/dart2js/parser_helper.dart |
diff --git a/tests/compiler/dart2js/parser_helper.dart b/tests/compiler/dart2js/parser_helper.dart |
index 344111fb416381d6c06739858deff17918c1e729..1e5876817f75344b93dc200f37e02f225894a25a 100644 |
--- a/tests/compiler/dart2js/parser_helper.dart |
+++ b/tests/compiler/dart2js/parser_helper.dart |
@@ -102,7 +102,7 @@ Node parseMember(String text, {DiagnosticListener diagnosticHandler}) { |
class MockFile extends StringSourceFile { |
MockFile(text) |
- : super('<string>', text); |
+ : super.fromName('<string>', text); |
} |
var sourceCounter = 0; |