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

Unified Diff: runtime/lib/expando_patch.dart

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/expando_patch.dart
diff --git a/runtime/lib/expando_patch.dart b/runtime/lib/expando_patch.dart
index 62898c790b51ab0c659e6dabe4cce67845ff1770..06fb46b9ba15ac258e9a8cc237b7e6cc0a13ef5c 100644
--- a/runtime/lib/expando_patch.dart
+++ b/runtime/lib/expando_patch.dart
@@ -58,7 +58,7 @@ patch class Expando<T> {
throw new NullPointerException();
}
if (object is bool || object is num || object is String) {
- throw new IllegalArgumentException(object);
+ throw new ArgumentError(object);
}
}

Powered by Google App Engine
This is Rietveld 408576698