Index: sdk/lib/_internal/compiler/js_lib/core_patch.dart |
diff --git a/sdk/lib/_internal/compiler/js_lib/core_patch.dart b/sdk/lib/_internal/compiler/js_lib/core_patch.dart |
index d42f9a854e1d7be99076861688d9a6eb6cab4d9f..7045e05f906283ba58a821eb47178164298de357 100644 |
--- a/sdk/lib/_internal/compiler/js_lib/core_patch.dart |
+++ b/sdk/lib/_internal/compiler/js_lib/core_patch.dart |
@@ -180,7 +180,9 @@ class DateTime { |
bool isUtc) |
// checkBool is manually inlined here because dart2js doesn't inline it |
// and [isUtc] is usually a constant. |
- : this.isUtc = isUtc is bool ? isUtc : throw new ArgumentError(isUtc), |
+ : this.isUtc = isUtc is bool |
+ ? isUtc |
+ : throw new ArgumentError.value(isUtc, 'isUtc'), |
millisecondsSinceEpoch = checkInt(Primitives.valueFromDecomposedDate( |
year, month, day, hour, minute, second, millisecond, isUtc)); |