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

Unified Diff: runtime/lib/array.cc

Issue 10989013: Change IllegalArgumentException to ArgumentError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated co19 test expectations. Created 8 years, 3 months 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/array.cc
diff --git a/runtime/lib/array.cc b/runtime/lib/array.cc
index c8187c4b18fa067af892a4fe524b07eea8948c50..67d23630baa6ba20bebeb3cc177a6d400baea009 100644
--- a/runtime/lib/array.cc
+++ b/runtime/lib/array.cc
@@ -25,7 +25,7 @@ DEFINE_NATIVE_ENTRY(ObjectArray_allocate, 2) {
len, Array::kMaxElements));
GrowableArray<const Object*> args;
args.Add(&error);
- Exceptions::ThrowByType(Exceptions::kIllegalArgument, args);
+ Exceptions::ThrowByType(Exceptions::kArgument, args);
}
const Array& new_array = Array::Handle(Array::New(length.Value()));
new_array.SetTypeArguments(type_arguments);
@@ -75,7 +75,7 @@ DEFINE_NATIVE_ENTRY(ObjectArray_copyFromObjectArray, 5) {
intptr_t icount = count.Value();
if (icount < 0) {
GrowableArray<const Object*> args;
- Exceptions::ThrowByType(Exceptions::kIllegalArgument, args);
+ Exceptions::ThrowByType(Exceptions::kArgument, args);
}
if (icount == 0) {
return Object::null();

Powered by Google App Engine
This is Rietveld 408576698