Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions polyfill/lib/ecmascript.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import {
IntlDateTimeFormatPrototypeGetFormat,
IntlDateTimeFormatPrototypeResolvedOptions,
IntlSupportedValuesOf,
JSONStringify,
MapPrototypeGet,
MapPrototypeHas,
MapPrototypeSet,
Expand Down Expand Up @@ -1812,9 +1813,9 @@ export function TimeZoneEquals(one, two) {
// can come from the argument of TimeZone.p.equals as opposed to the first
// ID which comes from the receiver.
const idRecord2 = GetAvailableNamedTimeZoneIdentifier(two);
if (!idRecord2) return false;
assert(idRecord2, `${JSONStringify(two)} has an invalid time zone`);
const idRecord1 = GetAvailableNamedTimeZoneIdentifier(one);
if (!idRecord1) return false;
assert(idRecord1, `${JSONStringify(one)} has an invalid time zone`);
return idRecord1.primaryIdentifier === idRecord2.primaryIdentifier;
} else {
return offsetMinutes1 === offsetMinutes2;
Expand Down