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

Unified Diff: lib/html/dart2js/html_dart2js.dart

Issue 11275042: Renaming IndexOutOfRangeException to RangeError. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: ADded RangeError.value constructor. Made VM calls work. Created 8 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:
Download patch
Index: lib/html/dart2js/html_dart2js.dart
diff --git a/lib/html/dart2js/html_dart2js.dart b/lib/html/dart2js/html_dart2js.dart
index 286137ddce17cdd0437cfa99702c3f6063b53541..9f81ce3cecfac871aa3c9884cf9985dbad940443 100644
--- a/lib/html/dart2js/html_dart2js.dart
+++ b/lib/html/dart2js/html_dart2js.dart
@@ -40862,14 +40862,14 @@ class _Lists {
* [:start + length:].
* Returns an empty list if [length] is 0.
* Throws an [ArgumentError] if [length] is negative.
- * Throws an [IndexOutOfRangeException] if [start] or
+ * Throws an [RangeError] if [start] or
floitsch 2012/11/01 12:11:39 Throws "a" ... You probably just need to run the
Lasse Reichstein Nielsen 2012/11/01 13:39:09 Will do, or see if I forgot the template too.
* [:start + length:] are out of range.
*/
static List getRange(List a, int start, int length, List accumulator) {
if (length < 0) throw new ArgumentError('length');
- if (start < 0) throw new IndexOutOfRangeException(start);
+ if (start < 0) throw new RangeError.value(start);
int end = start + length;
- if (end > a.length) throw new IndexOutOfRangeException(end);
+ if (end > a.length) throw new RangeError.value(end);
for (int i = start; i < end; i++) {
accumulator.add(a[i]);
}

Powered by Google App Engine
This is Rietveld 408576698