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

Unified Diff: runtime/lib/array.cc

Issue 11275042: Renaming IndexOutOfRangeException to RangeError. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regenerated html files. 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | runtime/lib/byte_array.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/array.cc
diff --git a/runtime/lib/array.cc b/runtime/lib/array.cc
index 67d23630baa6ba20bebeb3cc177a6d400baea009..4d967930e676c0b1ddcf49d91aa717c475c707c4 100644
--- a/runtime/lib/array.cc
+++ b/runtime/lib/array.cc
@@ -39,7 +39,7 @@ DEFINE_NATIVE_ENTRY(ObjectArray_getIndexed, 2) {
if ((index.Value() < 0) || (index.Value() >= array.Length())) {
GrowableArray<const Object*> arguments;
arguments.Add(&index);
- Exceptions::ThrowByType(Exceptions::kIndexOutOfRange, arguments);
+ Exceptions::ThrowByType(Exceptions::kRange, arguments);
}
return array.At(index.Value());
}
@@ -52,7 +52,7 @@ DEFINE_NATIVE_ENTRY(ObjectArray_setIndexed, 3) {
if ((index.Value() < 0) || (index.Value() >= array.Length())) {
GrowableArray<const Object*> arguments;
arguments.Add(&index);
- Exceptions::ThrowByType(Exceptions::kIndexOutOfRange, arguments);
+ Exceptions::ThrowByType(Exceptions::kRange, arguments);
}
array.SetAt(index.Value(), value);
return Object::null();
@@ -85,12 +85,12 @@ DEFINE_NATIVE_ENTRY(ObjectArray_copyFromObjectArray, 5) {
if ((isrc_start < 0) || ((isrc_start + icount) > source.Length())) {
GrowableArray<const Object*> arguments;
arguments.Add(&src_start);
- Exceptions::ThrowByType(Exceptions::kIndexOutOfRange, arguments);
+ Exceptions::ThrowByType(Exceptions::kRange, arguments);
}
if ((idst_start < 0) || ((idst_start + icount) > dest.Length())) {
GrowableArray<const Object*> arguments;
arguments.Add(&dst_start);
- Exceptions::ThrowByType(Exceptions::kIndexOutOfRange, arguments);
+ Exceptions::ThrowByType(Exceptions::kRange, arguments);
}
Object& src_obj = Object::Handle();
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | runtime/lib/byte_array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698