Index: runtime/lib/string_patch.dart |
diff --git a/runtime/lib/string_patch.dart b/runtime/lib/string_patch.dart |
index c3c2b40668264186bd217de6d807d1d250399948..da41fe91dde1681f1f6b27c20622db784fd25a5a 100644 |
--- a/runtime/lib/string_patch.dart |
+++ b/runtime/lib/string_patch.dart |
@@ -69,7 +69,7 @@ class _StringBase { |
// Treat charCodes as Iterable. |
if (start < 0) throw new RangeError.range(start, 0, charCodes.length); |
if (end != null && end < start) { |
- throw new RangeError.value(end, start, charCodes.length); |
+ throw new RangeError.range(end, start, charCodes.length); |
} |
var it = charCodes.iterator; |
for (int i = 0; i < start; i++) { |