You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Temporal.ZonedDateTime.prototype.toLocaleString, step 4-6 look unnecessary to me. The same steps are performed in Temporal.ZonedDateTime and ToTemporalTimeZoneIdentifier, so I don't see why zonedDateTime.[[TimeZone]] can't be directly passed to CreateDateTimeFormat.
The text was updated successfully, but these errors were encountered:
This removes some steps that can throw and therefore look observable, but
they were effectively dead code; the value stored in the [[TimeZone]]
internal slot is guaranteed to be a valid available time zone identifier.
h/t Anba
Closes: #3057
Temporal.ZonedDateTime.prototype.toLocaleString
, step 4-6 look unnecessary to me. The same steps are performed inTemporal.ZonedDateTime
andToTemporalTimeZoneIdentifier
, so I don't see whyzonedDateTime.[[TimeZone]]
can't be directly passed toCreateDateTimeFormat
.The text was updated successfully, but these errors were encountered: