Skip to content

Commit 26e4ceb

Browse files
khawarizmusjustingrant
authored andcommitted
fix: reduce bundle size even more
1 parent 008e4b7 commit 26e4ceb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

polyfill/lib/calendar.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,12 +1323,10 @@ const helperIslamic = ObjectAssign({}, nonIsoHelperBase, {
13231323
DAYS_PER_ISO_YEAR: 365.2425,
13241324
constantEra: 'ah',
13251325
reviseIntlEra(calendarDate /*, isoDate*/) {
1326-
let { era, eraYear } = calendarDate;
13271326
// Chrome for Android as of v 142.0.6367.179 mishandled the era option in Intl.DateTimeFormat
13281327
// and returned 'bc' instead of 'ah'. This code corrects that and any possible future errors.
13291328
// see https://issues.chromium.org/issues/40856332
1330-
era = 'ah';
1331-
return { era, eraYear };
1329+
return { ...calendarDate, era: 'ah' };
13321330
},
13331331
estimateIsoDate(calendarDate) {
13341332
const { year } = this.adjustCalendarDate(calendarDate);

0 commit comments

Comments
 (0)