Index: tests/compiler/dart2js/type_inference5_test.dart |
diff --git a/tests/compiler/dart2js/type_inference5_test.dart b/tests/compiler/dart2js/type_inference5_test.dart |
index 2a88b59c1962dc4720f662a29a3a174ad468d961..1d9af41a5cb4cb9d329eb06c3dc9dffdc66cf50c 100644 |
--- a/tests/compiler/dart2js/type_inference5_test.dart |
+++ b/tests/compiler/dart2js/type_inference5_test.dart |
@@ -22,7 +22,7 @@ main() { |
// Also make sure that we are not just in bailout mode without speculative |
// types by grepping for the integer-bailout check on argument j. |
var argname = |
- const RegExp(r'function(?: [a-z]+)?\(([a-zA-Z0-9_]+)\)').firstMatch(generated)[1]; |
+ new RegExp(r'function(?: [a-z]+)?\(([a-zA-Z0-9_]+)\)').firstMatch(generated)[1]; |
print(argname); |
RegExp regexp = new RegExp(getIntTypeCheck(argname)); |
Expect.isTrue(regexp.hasMatch(generated)); |