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

Unified Diff: runtime/lib/date_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/date_patch.dart
diff --git a/runtime/lib/date_patch.dart b/runtime/lib/date_patch.dart
index 7898957ad17b1c893e9a4d584d5ea7821ce78015..f9740b433a51ac81e39d4c12f6848e85fa01f158 100644
--- a/runtime/lib/date_patch.dart
+++ b/runtime/lib/date_patch.dart
@@ -16,8 +16,8 @@ patch class DateImplementation {
: this.isUtc = isUtc,
this.millisecondsSinceEpoch = _brokenDownDateToMillisecondsSinceEpoch(
year, month, day, hour, minute, second, millisecond, isUtc) {
- if (millisecondsSinceEpoch === null) throw new IllegalArgumentException();
- if (isUtc === null) throw new IllegalArgumentException();
+ if (millisecondsSinceEpoch === null) throw new ArgumentError();
+ if (isUtc === null) throw new ArgumentError();
}
/* patch */ DateImplementation.now()

Powered by Google App Engine
This is Rietveld 408576698