Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Unified Diff: runtime/lib/string.dart

Issue 8491014: Handling of wrong types of arguments in the File API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor tweaks Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/lib/string.dart
diff --git a/runtime/lib/string.dart b/runtime/lib/string.dart
index ca73d05502fe273d55f4c632762cdf1446d61f8a..75f38ec3742912bc8405472298f94790cb5f7a83 100644
--- a/runtime/lib/string.dart
+++ b/runtime/lib/string.dart
@@ -180,7 +180,7 @@ class StringBase {
return substringUnchecked_(first, last + 1);
}
- bool contains(Pattern other, int startIndex) {
+ bool contains(Pattern other, [int startIndex = 0]) {
if (other is String) {
return indexOf(other, startIndex) >= 0;
}

Powered by Google App Engine
This is Rietveld 408576698