Index: tests/compiler/dart2js/identity_test.dart |
diff --git a/tests/compiler/dart2js/identity_test.dart b/tests/compiler/dart2js/identity_test.dart |
index 327827a721864ac930d20e94fc188351fb4467f8..adbb7e3563a691b2dedde06353109e542094b766 100644 |
--- a/tests/compiler/dart2js/identity_test.dart |
+++ b/tests/compiler/dart2js/identity_test.dart |
@@ -17,11 +17,11 @@ main() { |
String generated = compile(TEST_ONE, entry: 'foo'); |
// Check that no boolify code is generated. |
- RegExp regexp = const RegExp("=== true"); |
+ RegExp regexp = new RegExp("=== true"); |
Iterator matches = regexp.allMatches(generated).iterator(); |
Expect.isFalse(matches.hasNext); |
- regexp = const RegExp("==="); |
+ regexp = new RegExp("==="); |
matches = regexp.allMatches(generated).iterator(); |
Expect.isTrue(matches.hasNext); |
matches.next(); |