Skip to content

Non ISO calendar refactor, part 1 #1983

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

Merged
merged 5 commits into from
Dec 15, 2021
Merged

Non ISO calendar refactor, part 1 #1983

merged 5 commits into from
Dec 15, 2021

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Dec 15, 2021

This contains commits from #1977 which @Ms2ger or I already reviewed. (I can't merge it myself since I opened it, so just needs a rubber-stamp review.)

More robust against overridden built-ins for operations such as
arr.includes(foo).

See #1911 (this only partially fixes the problem)
If the cache was cloned from another one, then existing entries were
counted twice.
The argument types in dateFromFields(), yearMonthFromFields(), and
monthDayFromFields() were not accurate.
@ptomato ptomato requested a review from justingrant December 15, 2021 21:43
@codecov
Copy link

codecov bot commented Dec 15, 2021

Codecov Report

Merging #1983 (a09de6b) into main (445079a) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1983   +/-   ##
=======================================
  Coverage   94.96%   94.96%           
=======================================
  Files          19       19           
  Lines       10962    10962           
  Branches     1742     1742           
=======================================
  Hits        10410    10410           
  Misses        535      535           
  Partials       17       17           
Flag Coverage Δ
test262 79.32% <62.50%> (+<0.01%) ⬆️
tests 89.86% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
polyfill/lib/calendar.mjs 94.29% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 445079a...a09de6b. Read the comment docs.

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.

Haha, you beat me to it. :-) Thanks!

@ptomato ptomato merged commit 750c7cc into main Dec 15, 2021
@ptomato ptomato deleted the non-iso-calendar-refactor branch December 15, 2021 23:00
@ptomato ptomato added the no-spec-text PR can be ignored by implementors label Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-spec-text PR can be ignored by implementors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants