Index: tests/compiler/dart2js/gvn_test.dart |
diff --git a/tests/compiler/dart2js/gvn_test.dart b/tests/compiler/dart2js/gvn_test.dart |
index edc6c822f37333991a1963d66fb4097666c15cbf..8414ca8a0ccef411afbc72126e8486d2fa824048 100644 |
--- a/tests/compiler/dart2js/gvn_test.dart |
+++ b/tests/compiler/dart2js/gvn_test.dart |
@@ -15,7 +15,7 @@ void foo(bar) { |
main() { |
String generated = compile(TEST_ONE, entry: 'foo'); |
- RegExp regexp = new RegExp(r"1 \+ [a-z]+"); |
+ RegExp regexp = const RegExp(r"1 \+ [a-z]+"); |
Iterator matches = regexp.allMatches(generated).iterator(); |
Expect.isTrue(matches.hasNext); |
matches.next(); |