Chromium Code Reviews

Unified Diff: tests/compiler/dart2js/value_range_test.dart

Issue 11410033: Make RegExp's constructor non-const. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review update Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « tests/compiler/dart2js/type_inference_test.dart ('k') | tests/corelib/reg_exp1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 50d40d935f9b348c8acf720a714e6a4b3458b54e..d05ce30ab0dd7ccdf5b96fd59138a7d52ab4c114 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 = const RegExp('ioore');
+ RegExp regexp = new RegExp('ioore');
Iterator matches = regexp.allMatches(generated).iterator();
checkNumberOfMatches(matches, 1);
break;
case ONE_ZERO_CHECK:
- RegExp regexp = const RegExp('< 0');
+ RegExp regexp = new RegExp('< 0');
Iterator matches = regexp.allMatches(generated).iterator();
checkNumberOfMatches(matches, 1);
break;
« no previous file with comments | « tests/compiler/dart2js/type_inference_test.dart ('k') | tests/corelib/reg_exp1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine