Index: runtime/lib/growable_array.dart |
diff --git a/runtime/lib/growable_array.dart b/runtime/lib/growable_array.dart |
index c648fb5bdf1fede4704dd90cffe3cfeea54baea2..a8462a37d0ef02d39b10469c83fe0b36ce7b8fa9 100644 |
--- a/runtime/lib/growable_array.dart |
+++ b/runtime/lib/growable_array.dart |
@@ -49,7 +49,7 @@ class _GrowableObjectArray<T> implements List<T> { |
throw new ArgumentError("invalid length specified $length"); |
} |
if (start < 0 || start > this.length) { |
- throw new IndexOutOfRangeException(start); |
+ throw new RangeError.value(start); |
} |
var old_length = this.length; |
this.length = old_length + length; // Will expand if needed. |