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() |