Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: Batch of editorial improvements #2896

Merged
merged 10 commits into from
Jun 14, 2024
Merged

Editorial: Batch of editorial improvements #2896

merged 10 commits into from
Jun 14, 2024

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Jun 13, 2024

Here's a batch of editorial fixes, including some docs improvements from Richard that I extracted out of another PR, and some of the newer editorial issues opened by Anba.

Best reviewed commit by commit.

Closes: #2871, #2872, #2874, #2875, #2879, #2887

ptomato and others added 10 commits June 13, 2024 22:14
This adds correct structured headers to all parsing operations, complete
with definitions of Records used. The Records use ~empty~ instead of
*undefined* to indicate absence of a particular element of the ISO string,
which requires some changes in the calling operations to accommodate this.

When returning ISO Date-Time Parse Records everywhere,
ParseTemporalDateString becomes redundant.
…ding

When calling DifferenceZonedDateTimeWithRounding with smallestUnit and
largestUnit not the same unit, it's possible to hit the NudgeToZonedTime
path, where [[Total]] is UNSET. This should be reflected in the structured
header's return type.

Closes: #2879
Since #2758 we no longer need to keep this PlainDate object for passing to
calendar methods. This allows removing an unnecessary object creation that
implementations would be able to optimize out anyway because it's
unobservable.

Closes: #2875
If the smallestUnit is a calendar unit, the largestUnit is also a calendar
unit, so the check was redundant. However, keep it as an explicit
assertion, for clarity to the reader.

Closes: #2874
In 3 places the arguments were reversed.

Closes: #2872
This operation returns a number of days, not a Date Duration Record.

Closes: #2871
@Ms2ger Ms2ger merged commit d464497 into main Jun 14, 2024
5 checks passed
@Ms2ger Ms2ger deleted the editorial branch June 14, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UnbalanceDateDurationRelative: Return Date Duration Record but callers expect integer
3 participants