Index: tests/compiler/dart2js/type_guard_unuser_test.dart |
diff --git a/tests/compiler/dart2js/type_guard_unuser_test.dart b/tests/compiler/dart2js/type_guard_unuser_test.dart |
index 6788160e1a6667c26f1aa8dd632dc4104c3d615e..199968f4b13e6be24fa2183c568276fcfdbfb674 100644 |
--- a/tests/compiler/dart2js/type_guard_unuser_test.dart |
+++ b/tests/compiler/dart2js/type_guard_unuser_test.dart |
@@ -47,7 +47,7 @@ main() { |
Expect.isTrue(generated.contains(r'return a === true ? $.foo(2) : b;')); |
generated = compile(TEST_TWO, entry: 'foo'); |
- regexp = const RegExp("foo\\(1\\)"); |
+ regexp = new RegExp("foo\\(1\\)"); |
matches = regexp.allMatches(generated).iterator(); |
checkNumberOfMatches(matches, 1); |