-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Normative: Fix inconsistency in order of observable operations
Previously, the monthDayFromFields() method of non-ISO calendars behaved differently from dateFromFields() and yearMonthFromFields(), as well as monthDayFromFields() of the ISO calendar. The latter checked the overflow option before accessing the fields, and the former checked the overflow option afterwards. This normative change fixes this inconsistency. The general principle is that arguments to a function should be validated in order, so we go with accessing the fields before checking the overflow option. Requires an update to the reference code, which previously consistently checked the overflow option first.
- Loading branch information
Showing
3 changed files
with
11 additions
and
11 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
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
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