| Index: lib/compiler/implementation/lib/js_helper.dart
|
| diff --git a/lib/compiler/implementation/lib/js_helper.dart b/lib/compiler/implementation/lib/js_helper.dart
|
| index 447a04cc0365b9f62552b81cd4945b85611f1afe..685226a4c9f969cbe9ca0704336a9feab31afc4d 100644
|
| --- a/lib/compiler/implementation/lib/js_helper.dart
|
| +++ b/lib/compiler/implementation/lib/js_helper.dart
|
| @@ -438,24 +438,11 @@ class Primitives {
|
| milliseconds, isUtc) {
|
| checkInt(years);
|
| checkInt(month);
|
| - if (month < 1 || 12 < month) throw new IllegalArgumentException(month);
|
| checkInt(day);
|
| - if (day < 1 || 31 < day) throw new IllegalArgumentException(day);
|
| checkInt(hours);
|
| - if (hours < 0 || 24 < hours) throw new IllegalArgumentException(hours);
|
| checkInt(minutes);
|
| - if (minutes < 0 || 59 < minutes) {
|
| - throw new IllegalArgumentException(minutes);
|
| - }
|
| checkInt(seconds);
|
| - if (seconds < 0 || 59 < seconds) {
|
| - // TODO(ahe): Leap seconds?
|
| - throw new IllegalArgumentException(seconds);
|
| - }
|
| checkInt(milliseconds);
|
| - if (milliseconds < 0 || 999 < milliseconds) {
|
| - throw new IllegalArgumentException(milliseconds);
|
| - }
|
| checkBool(isUtc);
|
| var jsMonth = month - 1;
|
| var value;
|
|
|