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

Various editorial issues from Anba's feedback #2459

Merged
merged 4 commits into from
Jan 10, 2023
Merged

Various editorial issues from Anba's feedback #2459

merged 4 commits into from
Jan 10, 2023

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Jan 6, 2023

Renames and clarifications to address a few of the remaining checklist items in #1502. While we're here, convert the renamed AOs to have structured headers.

Feedback from an implementation asked for clarification on this.

It's not possible to directly create a PlainYearMonth or PlainMonthDay
given a full date in a non-ISO calendar. To create it directly, you need
the ISO date of the first day of the PlainYearMonth, or the ISO date of
the PlainMonthDay in the reference year, respectively. Only the calendar
has this knowledge.

(For example, today's date 2023-01-05 in the Hebrew calendar is 12 Tevet
5783. If you want the PlainYearMonth of Tevet 5783, you need to create it
with a reference ISO date of 2022-12-25. This is accomplished by the
CalendarYearMonthFromFields call, where _fields_ is something like
`{ year: 5783, monthCode: 'M04' }`.)

See: #1502
For consistency with GetOffsetNanosecondsFor, and because it does not
require a builtin time zone.
…meFor

For consistency with GetOffsetNanosecondsFor, and because it does not
require a builtin time zone.
For consistency with GetOffsetNanosecondsFor, and because it does not
require a builtin time zone.
@codecov
Copy link

codecov bot commented Jan 6, 2023

Codecov Report

Merging #2459 (9ead244) into main (7dde0ae) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2459      +/-   ##
==========================================
- Coverage   94.94%   94.93%   -0.01%     
==========================================
  Files          20       20              
  Lines       10891    10879      -12     
  Branches     1954     1954              
==========================================
- Hits        10340    10328      -12     
  Misses        504      504              
  Partials       47       47              
Impacted Files Coverage Δ
polyfill/lib/ecmascript.mjs 98.28% <100.00%> (-0.01%) ⬇️
polyfill/lib/intl.mjs 97.82% <100.00%> (ø)
polyfill/lib/now.mjs 100.00% <100.00%> (ø)
polyfill/lib/plaindate.mjs 98.71% <100.00%> (ø)
polyfill/lib/plaindatetime.mjs 97.92% <100.00%> (ø)
polyfill/lib/plaintime.mjs 100.00% <100.00%> (ø)
polyfill/lib/timezone.mjs 99.36% <100.00%> (ø)
polyfill/lib/zoneddatetime.mjs 99.82% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

polyfill/lib/ecmascript.mjs Show resolved Hide resolved
@ptomato ptomato merged commit a37bfec into main Jan 10, 2023
@ptomato ptomato deleted the editorial2 branch January 10, 2023 17:24
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.

2 participants