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: Various fine-tooth comb changes #2944

Merged
merged 10 commits into from
Sep 24, 2024
Merged

Editorial: Various fine-tooth comb changes #2944

merged 10 commits into from
Sep 24, 2024

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Sep 21, 2024

Here's a batch of editorial changes that resulted from a look over the spec text with a fine-tooth comb.

@ptomato ptomato requested a review from Ms2ger September 21, 2024 01:06
Copy link
Collaborator

@gibson042 gibson042 left a comment

Choose a reason for hiding this comment

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

Nice!

spec/calendar.html Outdated Show resolved Hide resolved
spec/calendar.html Outdated Show resolved Hide resolved
spec/instant.html Show resolved Hide resolved
spec/plainyearmonth.html Show resolved Hide resolved
polyfill/lib/calendar.mjs Outdated Show resolved Hide resolved
@gibson042
Copy link
Collaborator

P.S. https://www.npmjs.com/package/@js-temporal/polyfill is apparently a year old; should it be republished?

@justingrant
Copy link
Collaborator

https://www.npmjs.com/package/@js-temporal/polyfill is apparently a year old; should it be republished?

Yeah, @12wrigja and I have some work to do to catch it up with the latest commits. Sorry, I haven't had time for this recently.

Copy link
Collaborator

@justingrant justingrant left a comment

Choose a reason for hiding this comment

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

Looks good, thanks!

polyfill/lib/duration.mjs Show resolved Hide resolved
spec/duration.html Show resolved Hide resolved
polyfill/lib/calendar.mjs Outdated Show resolved Hide resolved
@ptomato
Copy link
Collaborator Author

ptomato commented Sep 23, 2024

I guess node-codecov finally broke, faster than I hoped. I'll have to do #2931 before merging this.

@justingrant
Copy link
Collaborator

Also, are the Test262 failures expected?

@ptomato
Copy link
Collaborator Author

ptomato commented Sep 23, 2024

No test failures, it's just the codecov uploader failing.

@ptomato
Copy link
Collaborator Author

ptomato commented Sep 24, 2024

#2945 should fix it. Reviews appreciated!

@ptomato ptomato mentioned this pull request Sep 24, 2024
27 tasks
This was a mistake in #2943. _targetTime_.[[Days]] cannot exceed the
original value of _duration_.[[Days]] here because its absolute value can
only be equal or smaller coming out of AddTime.
"Input era ce doesn't match calculated value gregory-inverse" is
incredibly confusing. Printing either "bc" or "bce" instead of
"gregory-inverse" would be much preferable.
This has been annoying me for a long time, it decreases readability for
little benefit.
These accidentally used the names of Duration slots, where they should be
using Time Record slots.
… [[EpochNanoseconds]]

Another thing that has been annoying me for a long time. Rename these to
[[EpochNanoseconds]] so they don't get confused with the Duration
[[Nanoseconds]] internal slot.
Move UnnormalizeDuration out of RoundRelativeDuration and
Difference{Plain,Zoned}DateTimeWithRounding, and into the calling
operations. This fits the normalize-calc-unnormalize pattern better, and
we can actually simplify the choice of which largestUnit is used for
UnnormalizeDuration.
…elds

The description still used property names, but that is not correct anymore
because we are dealing with a Calendar Fields Record, not an Object.
This was a straggler from the removal of custom calendars - these should
be enumeration values from the Calendar Fields Record table, not property
keys.
Copy link

codecov bot commented Sep 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.46%. Comparing base (764b909) to head (c99a848).
Report is 10 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2944      +/-   ##
==========================================
- Coverage   97.47%   97.46%   -0.02%     
==========================================
  Files          22       22              
  Lines       10677    10672       -5     
  Branches     1872     1871       -1     
==========================================
- Hits        10407    10401       -6     
- Misses        270      271       +1     

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

@ptomato ptomato merged commit 0cc6512 into main Sep 24, 2024
10 checks passed
@ptomato ptomato deleted the editorial branch September 24, 2024 01:47
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.

3 participants