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: More suggestions from Anba #3004

Merged
merged 4 commits into from
Oct 8, 2024
Merged

Editorial: More suggestions from Anba #3004

merged 4 commits into from
Oct 8, 2024

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Oct 8, 2024

cc @anba

Closes: #2997, #2999, #3001

Copy link

codecov bot commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.89%. Comparing base (180a354) to head (e049468).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3004      +/-   ##
==========================================
+ Coverage   95.88%   95.89%   +0.01%     
==========================================
  Files          21       21              
  Lines        9674     9678       +4     
  Branches     1836     1837       +1     
==========================================
+ Hits         9276     9281       +5     
+ Misses        345      344       -1     
  Partials       53       53              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This was previously not thought necessary, but some month-day combinations
are rare enough in the Chinese lunar calendar that they might occur only
outside of the representable range.

Failing this check would hit an assertion elsewhere anyway, so this is
editorial.

Closes: #2997
The enum values are no longer passed anywhere in the spec text, so remove
them as a permissible type. Update the polyfill implementation to match,
which had a bug; it always assumed ~date~, which was incorrect.

Closes: #2999
…rder

It's easier to inspect at a glance which fields are included when they are
given in order. This order is not observable because the list is sorted
by lexicographical order anyway before being used to access properties.

See: #3001
Copy link
Collaborator

@Ms2ger Ms2ger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

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.

CalendarMonthDayToISOReferenceDate: Throw RangeError if resolved date is outside of valid limits
2 participants