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: Another batch of minor editorial improvements #2833

Merged
merged 4 commits into from
May 3, 2024
Merged

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented May 2, 2024

Closes: #2655
Closes: #2831

cc @anba

Occasionally, the validStrings.mjs test would fail if there were multiple
parts of a duration that added up to a time duration that was past the
limit. Anticipate this case and generate another string if it happens.

See, for example:
https://github.com/tc39/proposal-temporal/actions/runs/8272287985/job/22633836036
…mbers

ParseISODateTime was previously specified to reject invalid dates and
times before rejecting invalid annotations, except for the special case of
rejecting a PlainYearMonth or PlainMonthDay whose first calendar
annotation is present and specifies anything other than "iso8601".

Refactoring it to process annotations first, removing the special case,
makes it more comprehensible and easier to implement.

This change only affects the messages of errors thrown in response to
invalid input, and is therefore editorial.

Closes: #2655
In a few places we used as hoc Records with fields [[ReferenceISOYear]]
and [[ReferenceISODay]]. Remove these in favour of ISO Date Records, since
they represent an ISO date anyway.
Thanks to Anba for spotting this. Overlooked in #2823. No need to change
reference code or tests; the reference code already has this.

Closes: #2831
@Ms2ger Ms2ger merged commit 9460dd8 into main May 3, 2024
5 checks passed
@Ms2ger Ms2ger deleted the editorial branch May 3, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants