-
Notifications
You must be signed in to change notification settings - Fork 174
Closed
Labels
Milestone
Description
6.5.2 ToTemporalZonedDateTime ( item [ , options ] )
https://tc39.es/proposal-temporal/#sec-temporal-totemporalzoneddatetime
c. Let result be ? ParseTemporalZonedDateTimeString(string).
...
g. Let calendar be ? ToTemporalCalendarWithISODefault(result.[[Calendar]]).
but if we read ParseTemporalZonedDateTimeString in
13.36 ParseTemporalZonedDateTimeString ( isoString )
https://tc39.es/proposal-temporal/#sec-temporal-parsetemporalzoneddatetimestring
the return value does not include [[Calendar]]
6. Return the new Record { [[Year]]: result.[[Year]], [[Month]]: result.[[Month]], [[Day]]: result.[[Day]], [[Hour]]: result.[[Hour]], [[Minute]]: result.[[Minute]], [[Second]]: result.[[Second]], [[Millisecond]]: result.[[Millisecond]], [[Microsecond]]: result.[[Microsecond]], [[Nanosecond]]: result.[[Nanosecond]], [[TimeZoneOffsetString]]: timeZoneResult.[[OffsetString]], [[TimeZoneName]]: timeZoneResult.[[Name]] }.
so result.[[Calendar]] will always be undefined in step 3g of ToTemporalZonedDateTime
Reactions are currently unavailable