@@ -644,7 +644,7 @@ interface NonIsoHelperBase {
644
644
reviseIntlEra ?( calendarDate : any , isoDate ?: any ) : { era : number ; eraYear : number } ;
645
645
hasEra ?: boolean ;
646
646
constantEra ?: string ;
647
- checkIcuBugs ?( calendarDate : any , isoDate : any ) : void ;
647
+ checkIcuBugs ?( isoDate : any ) : void ;
648
648
calendarType ?: string ;
649
649
monthsInYear ?( calendarDate : any , cache ?: any ) : number ;
650
650
maximumMonthLength ?( calendarDate ?: any ) : number ;
@@ -762,7 +762,7 @@ const nonIsoHelperBase: NonIsoHelperBase = {
762
762
result . era = era ;
763
763
result . eraYear = eraYear ;
764
764
}
765
- if ( this . checkIcuBugs ) this . checkIcuBugs ( result , isoDate ) ;
765
+ if ( this . checkIcuBugs ) this . checkIcuBugs ( isoDate ) ;
766
766
767
767
const calendarDate = this . adjustCalendarDate ( result , cache , 'constrain' , true ) ;
768
768
if ( calendarDate . year === undefined ) throw new RangeError ( `Missing year converting ${ JSON . stringify ( isoDate ) } ` ) ;
@@ -1486,7 +1486,7 @@ const helperIndian: NonIsoHelperBase = ObjectAssign({}, nonIsoHelperBase, {
1486
1486
// expected.
1487
1487
vulnerableToBceBug :
1488
1488
new Date ( '0000-01-01T00:00Z' ) . toLocaleDateString ( 'en-US-u-ca-indian' , { timeZone : 'UTC' } ) !== '10/11/-79 Saka' ,
1489
- checkIcuBugs ( calendarDate , isoDate ) {
1489
+ checkIcuBugs ( isoDate ) {
1490
1490
if ( this . vulnerableToBceBug && isoDate . year < 1 ) {
1491
1491
throw new RangeError (
1492
1492
`calendar '${ this . id } ' is broken for ISO dates before 0001-01-01` +
@@ -1795,7 +1795,7 @@ const makeHelperGregorian = (id: BuiltinCalendarId, originalEras: InputEra[]) =>
1795
1795
. toLocaleDateString ( 'en-US-u-ca-japanese' , { timeZone : 'UTC' } )
1796
1796
. startsWith ( '12' ) ,
1797
1797
calendarIsVulnerableToJulianBug : false ,
1798
- checkIcuBugs ( calendarDate , isoDate ) {
1798
+ checkIcuBugs ( isoDate ) {
1799
1799
if ( this . calendarIsVulnerableToJulianBug && this . v8IsVulnerableToJulianBug ) {
1800
1800
const beforeJulianSwitch = ES . CompareISODate ( isoDate . year , isoDate . month , isoDate . day , 1582 , 10 , 15 ) < 0 ;
1801
1801
if ( beforeJulianSwitch ) {
0 commit comments