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

Unified Diff: runtime/vm/native_entry.h

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/vm/native_entry.h
diff --git a/runtime/vm/native_entry.h b/runtime/vm/native_entry.h
index f33a625103b0fc475ed10d5e1502c13383434d5d..7e5559935e2ea98b104fab9050471babdad3cddf 100644
--- a/runtime/vm/native_entry.h
+++ b/runtime/vm/native_entry.h
@@ -59,7 +59,7 @@ typedef void (*NativeFunction)(NativeArguments* arguments);
if (!__##name##_instance__.Is##type()) { \
GrowableArray<const Object*> __args__; \
__args__.Add(&__##name##_instance__); \
- Exceptions::ThrowByType(Exceptions::kIllegalArgument, __args__); \
+ Exceptions::ThrowByType(Exceptions::kArgument, __args__); \
} \
const type& name = type::Cast(__##name##_instance__);

Powered by Google App Engine
This is Rietveld 408576698