diff --git a/polyfill/lib/ecmascript.mjs b/polyfill/lib/ecmascript.mjs index 6292f2118b..2b39b549df 100644 --- a/polyfill/lib/ecmascript.mjs +++ b/polyfill/lib/ecmascript.mjs @@ -1844,11 +1844,13 @@ export const ES = ObjectAssign({}, ES2020, { return cal1 < cal2 ? -1 : cal1 > cal2 ? 1 : 0; }, CalendarEquals: (one, two) => { + if (one === two) return true; const cal1 = ES.ToString(one); const cal2 = ES.ToString(two); return cal1 === cal2; }, ConsolidateCalendars: (one, two) => { + if (one === two) return two; const sOne = ES.ToString(one); const sTwo = ES.ToString(two); if (sOne === sTwo || sOne === 'iso8601') { @@ -1893,6 +1895,7 @@ export const ES = ObjectAssign({}, ES2020, { return new TemporalTimeZone(timeZone); }, TimeZoneEquals: (one, two) => { + if (one === two) return true; const tz1 = ES.ToString(one); const tz2 = ES.ToString(two); return tz1 === tz2; diff --git a/spec/calendar.html b/spec/calendar.html index dbf2fbb19b..bc23629de4 100644 --- a/spec/calendar.html +++ b/spec/calendar.html @@ -329,6 +329,7 @@