Index: tests/compiler/dart2js/gvn_dynamic_field_get_test.dart |
diff --git a/tests/compiler/dart2js/gvn_dynamic_field_get_test.dart b/tests/compiler/dart2js/gvn_dynamic_field_get_test.dart |
index b2634394dd2b7104eae5eedf9aa32b9e3cd32188..380f131fe122cc7c1b0ff6fdbf9a5ad86443495b 100644 |
--- a/tests/compiler/dart2js/gvn_dynamic_field_get_test.dart |
+++ b/tests/compiler/dart2js/gvn_dynamic_field_get_test.dart |
@@ -26,7 +26,7 @@ main() { |
var compiler = compilerFor(TEST, uri); |
compiler.runCompiler(uri); |
String generated = compiler.assembledCode; |
- RegExp regexp = new RegExp(r"get\$foo"); |
+ RegExp regexp = const RegExp(r"get\$foo"); |
Iterator matches = regexp.allMatches(generated).iterator(); |
checkNumberOfMatches(matches, 1); |
var cls = findElement(compiler, 'A'); |