Index: tests/compiler/dart2js/value_range_test.dart |
diff --git a/tests/compiler/dart2js/value_range_test.dart b/tests/compiler/dart2js/value_range_test.dart |
index d05ce30ab0dd7ccdf5b96fd59138a7d52ab4c114..50d40d935f9b348c8acf720a714e6a4b3458b54e 100644 |
--- a/tests/compiler/dart2js/value_range_test.dart |
+++ b/tests/compiler/dart2js/value_range_test.dart |
@@ -221,13 +221,13 @@ expect(String code, int kind) { |
break; |
case ONE_CHECK: |
- RegExp regexp = new RegExp('ioore'); |
+ RegExp regexp = const RegExp('ioore'); |
Iterator matches = regexp.allMatches(generated).iterator(); |
checkNumberOfMatches(matches, 1); |
break; |
case ONE_ZERO_CHECK: |
- RegExp regexp = new RegExp('< 0'); |
+ RegExp regexp = const RegExp('< 0'); |
Iterator matches = regexp.allMatches(generated).iterator(); |
checkNumberOfMatches(matches, 1); |
break; |