Index: runtime/lib/regexp_patch.dart |
diff --git a/runtime/lib/regexp_patch.dart b/runtime/lib/regexp_patch.dart |
index 6a921fa9a0769a42d7ca33f37e1e973289b2c4d2..2eab296397e89942a61bd75334f9deb5ecdc7692 100644 |
--- a/runtime/lib/regexp_patch.dart |
+++ b/runtime/lib/regexp_patch.dart |
@@ -5,10 +5,10 @@ |
patch class RegExp { |
/* patch */ factory RegExp(String pattern, |
{bool multiLine: false, |
- bool ignoreCase: false}) { |
+ bool caseSensitive: true}) { |
return new _JSSyntaxRegExp(pattern, |
multiLine: multiLine, |
- ignoreCase: ignoreCase); |
+ caseSensitive: caseSensitive); |
} |
} |
@@ -44,7 +44,7 @@ class _JSRegExpMatch implements Match { |
} |
List<String> groups(List<int> groupsSpec) { |
- var groupsList = new List<String>(groupsSpec.length); |
+ var groupsList = new List<String>.fixedLength(groupsSpec.length); |
for (int i = 0; i < groupsSpec.length; i++) { |
groupsList[i] = group(groupsSpec[i]); |
} |
@@ -66,7 +66,7 @@ class _JSSyntaxRegExp implements RegExp { |
factory _JSSyntaxRegExp( |
String pattern, |
{bool multiLine: false, |
- bool ignoreCase: false}) native "JSSyntaxRegExp_factory"; |
+ bool caseSensitive: true}) native "JSSyntaxRegExp_factory"; |
Match firstMatch(String str) { |
List match = _ExecuteMatch(str, 0); |
@@ -114,9 +114,9 @@ class _JSSyntaxRegExp implements RegExp { |
String get pattern native "JSSyntaxRegExp_getPattern"; |
- bool get multiLine native "JSSyntaxRegExp_multiLine"; |
+ bool get isMultiLine native "JSSyntaxRegExp_getIsMultiLine"; |
- bool get ignoreCase native "JSSyntaxRegExp_ignoreCase"; |
+ bool get isCaseSensitive native "JSSyntaxRegExp_getIsCaseSensitive"; |
int get _groupCount native "JSSyntaxRegExp_getGroupCount"; |