Index: sdk/lib/_internal/compiler/implementation/dart2js.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart |
index a7c73719dc35ce68897809a434051f5a2b53c38e..5c631671d4acb50b1437d966abea505788bdf411 100644 |
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart |
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart |
@@ -35,7 +35,7 @@ class OptionHandler { |
String extractParameter(String argument) { |
// m[0] is the entire match (which will be equal to argument). m[1] |
// is something like "-o" or "--out=", and m[2] is the parameter. |
- Match m = const RegExp('^(-[a-z]|--.+=)(.*)').firstMatch(argument); |
+ Match m = new RegExp('^(-[a-z]|--.+=)(.*)').firstMatch(argument); |
if (m == null) helpAndFail('Error: Unknown option "$argument".'); |
return m[2]; |
} |