Browser: Safari 26.4
Polyfill cdn: https://esm.sh/@js-temporal/polyfill
Issue: I'm leveraging this polyfill for a chinese calendar I am implementing to also include the leap year functionality from Temporal. The error I came across was Error: Unexpected leap month suffix: Mo3.
To recreate:
const today = (Temporal.Now.plainDateISO()).toString();
const date = Temporal.PlainDate.from(today);
const chineseDate = date.withCalendar('chinese');
// Calling chineseDate.year, chineseDate.month, chinese.monthCode, chineseDate.monthsInYear recreates the error
It seems like a malformed month code issue stemming from
|
if (monthExtra !== undefined) throw new RangeError('Unexpected `monthExtra` value'); |
Any help or direction would be much appreciated!
Screenshots of the error:

Browser: Safari 26.4
Polyfill cdn: https://esm.sh/@js-temporal/polyfill
Issue: I'm leveraging this polyfill for a chinese calendar I am implementing to also include the leap year functionality from
Temporal. The error I came across wasError: Unexpected leap month suffix: Mo3.To recreate:
It seems like a malformed month code issue stemming from
temporal-polyfill/lib/calendar.ts
Line 777 in ef32041
Any help or direction would be much appreciated!
Screenshots of the error: