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

Unified Diff: utils/pub/package.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: utils/pub/package.dart
diff --git a/utils/pub/package.dart b/utils/pub/package.dart
index 218797ebaba6034a88ba708f9f753043ec39de9e..3b058e035470b11c311b826bc45cbfb5d644db56 100644
--- a/utils/pub/package.dart
+++ b/utils/pub/package.dart
@@ -135,7 +135,7 @@ class PackageId implements Comparable, Hashable {
String toString() => "$name $version from ${source.name}";
int compareTo(Comparable other) {
- if (other is! PackageId) throw new IllegalArgumentException(other);
+ if (other is! PackageId) throw new ArgumentError(other);
var sourceComp = source.name.compareTo(other.source.name);
if (sourceComp != 0) return sourceComp;

Powered by Google App Engine
This is Rietveld 408576698