Index: tests/compiler/dart2js/closure_codegen_test.dart |
diff --git a/tests/compiler/dart2js/closure_codegen_test.dart b/tests/compiler/dart2js/closure_codegen_test.dart |
index 3f6daf3e850d6dcf67301f1234ee01419707e236..7b4989948a0dc0b488c286e24afafbc590a6da22 100644 |
--- a/tests/compiler/dart2js/closure_codegen_test.dart |
+++ b/tests/compiler/dart2js/closure_codegen_test.dart |
@@ -52,7 +52,7 @@ closureInvocation() { |
// the closure. |
closureBailout() { |
String generated = compileAll(TEST_BAILOUT); |
- RegExp regexp = new RegExp(r'call\$0: function'); |
+ RegExp regexp = const RegExp(r'call\$0: function'); |
Iterator<Match> matches = regexp.allMatches(generated).iterator(); |
checkNumberOfMatches(matches, 1); |
} |