-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Fix calendar validation in ToTemporal___ operations
In ToRelativeTemporalObject, ToTemporalDateTime, ToTemporalMonthDay, ToTemporalYearMonth, and ToTemporalZonedDateTime, PR #2482 mistakenly left out the validation of the calendar name when parsing a string. The validation in ToTemporalDate was incorrect, because it should not have accepted ISO strings as calendar identifiers, which ToTemporalCalendarSlotValue would have, e.g.: Temporal.PlainDate.from('2023-04-13[u-ca=2023-04-13]') (would return a PlainDate with the iso8601 calendar, instead of throwing) Closes: #2546 UPSTREAM_COMMIT=8e9a39835836cb255a702459a2af9adf75c792c0
- Loading branch information
1 parent
16669e8
commit 72e72a1
Showing
1 changed file
with
16 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters