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

Duration iscalendarunit #2707

Merged
merged 2 commits into from
Jan 31, 2024
Merged

Duration iscalendarunit #2707

merged 2 commits into from
Jan 31, 2024

Conversation

Mrashes
Copy link
Contributor

@Mrashes Mrashes commented Oct 10, 2023

Refactor for legibility - #2692

Two errors that were triggering on test were present in branch previously

co-authored by El Linzer elinzer5@gmail.com

Copy link
Collaborator

@ptomato ptomato left a comment

Choose a reason for hiding this comment

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

Thanks for contributing!
We generally try to update the specification text along with the reference code at the same time. Any chance you would like to tackle that change as well?

@@ -0,0 +1,3 @@
export function isCalendarDate(unit) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

In this codebase we generally aren't using the one-export-per-file style; for now I'd suggest putting this into lib/ecmascript.mjs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do! Also will try to update the spec text. Probably going to get to this this weekend.

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Attention: 28 lines in your changes are missing coverage. Please review.

Comparison is base (40ca575) 96.61% compared to head (08f4bc7) 95.91%.
Report is 2 commits behind head on main.

❗ Current head 08f4bc7 differs from pull request most recent head ebdc729. Consider uploading reports for the commit ebdc729 to get more accurate results

Files Patch % Lines
polyfill/lib/timeduration.mjs 87.50% 17 Missing ⚠️
polyfill/lib/duration.mjs 95.91% 10 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2707      +/-   ##
==========================================
- Coverage   96.61%   95.91%   -0.70%     
==========================================
  Files          23       23              
  Lines       12229    11872     -357     
  Branches     2281     2338      +57     
==========================================
- Hits        11815    11387     -428     
- Misses        354      420      +66     
- Partials       60       65       +5     

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

@ptomato ptomato force-pushed the duration-normalize-96 branch 4 times, most recently from 605eba2 to ce4605e Compare October 26, 2023 17:59
@ptomato ptomato force-pushed the duration-normalize-96 branch 3 times, most recently from bdebb14 to 6a79293 Compare November 16, 2023 19:17
Co-authored-by: Max Rashes mrashes2@gmail.com
Co-authored-by: El Linzer elinzer5@gmail.com
@ptomato ptomato changed the base branch from duration-normalize-96 to main January 31, 2024 17:19
Copy link
Collaborator

@ptomato ptomato left a comment

Choose a reason for hiding this comment

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

Now that the other duration changes have been merged, I finally was able to rebase this and add the spec text. Thanks for contributing and sorry for the long wait!

Use this operation in the spec as well, for readability and conciseness.
@ptomato ptomato merged commit 0451f32 into tc39:main Jan 31, 2024
5 checks passed
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