Index: tests/compiler/dart2js/redundant_phi_eliminator_test.dart |
diff --git a/tests/compiler/dart2js/redundant_phi_eliminator_test.dart b/tests/compiler/dart2js/redundant_phi_eliminator_test.dart |
index 63d8b8b10d3a4bae69f28c1739f9091c662d621b..47bdd46b5fcf442df30770f77bf18c5564193b15 100644 |
--- a/tests/compiler/dart2js/redundant_phi_eliminator_test.dart |
+++ b/tests/compiler/dart2js/redundant_phi_eliminator_test.dart |
@@ -28,12 +28,12 @@ void foo() { |
main() { |
String generated = compile(TEST_ONE, entry: 'foo'); |
- RegExp regexp = new RegExp("toBeRemoved"); |
+ RegExp regexp = const RegExp("toBeRemoved"); |
Expect.isTrue(!regexp.hasMatch(generated)); |
generated = compile(TEST_TWO, entry: 'foo'); |
- regexp = new RegExp("toBeRemoved"); |
+ regexp = const RegExp("toBeRemoved"); |
Expect.isTrue(!regexp.hasMatch(generated)); |
- regexp = new RegExp("temp"); |
+ regexp = const RegExp("temp"); |
Expect.isTrue(!regexp.hasMatch(generated)); |
} |