File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2630,7 +2630,7 @@ function InternalDurationSign(duration) {
26302630}
26312631
26322632export function BalanceISOYearMonth ( year , month ) {
2633- if ( ! NumberIsFinite ( year ) || ! NumberIsFinite ( month ) ) throw new RangeErrorCtor ( ' infinity is out of range') ;
2633+ assert ( NumberIsFinite ( year ) && NumberIsFinite ( month ) , 'BalanceISOYearMonth: infinity is out of range') ;
26342634 month -= 1 ;
26352635 year += MathFloor ( month / 12 ) ;
26362636 month %= 12 ;
@@ -2640,7 +2640,7 @@ export function BalanceISOYearMonth(year, month) {
26402640}
26412641
26422642export function BalanceISODate ( year , month , day ) {
2643- if ( ! NumberIsFinite ( day ) ) throw new RangeErrorCtor ( ' infinity is out of range') ;
2643+ assert ( NumberIsFinite ( day ) , 'BalanceISODate: infinity is out of range') ;
26442644 ( { year, month } = BalanceISOYearMonth ( year , month ) ) ;
26452645
26462646 // The pattern of leap years in the ISO 8601 calendar repeats every 400
You can’t perform that action at this time.
0 commit comments