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

Polyfill: Call DifferenceInstant() correctly from DifferenceZonedDateTimeWithRounding() (#3035) #3036

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

catamorphism
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Nov 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.70%. Comparing base (4040485) to head (5c78fba).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3036   +/-   ##
=======================================
  Coverage   95.70%   95.70%           
=======================================
  Files          21       21           
  Lines        9695     9695           
  Branches     1741     1742    +1     
=======================================
  Hits         9279     9279           
  Misses        364      364           
  Partials       52       52           

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

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!
(And I'm glad this wasn't a problem in the spec text)

It would be nice to land this together with the increased test262 coverage that led you to find this bug. So I won't merge it straightaway.

The way to do it would be to get the test262 PR reviewed and merged first, then push another commit to this PR updating the test262 submodule to the latest state of main, then merge this PR.

@catamorphism
Copy link
Contributor Author

The way to do it would be to get the test262 PR reviewed and merged first, then push another commit to this PR updating the test262 submodule to the latest state of main, then merge this PR.

Submitted the test262 PR: tc39/test262#4306

ptomato pushed a commit to tc39/test262 that referenced this pull request Nov 7, 2024
@ptomato ptomato force-pushed the rounding-bug branch 2 times, most recently from 6c98d11 to d26a150 Compare November 7, 2024 21:11
@ptomato
Copy link
Collaborator

ptomato commented Nov 7, 2024

Sorry, I messed up my code review suggestion in the test262 PR. I've corrected it in tc39/test262#4320, and I'll push another update commit once that's merged.

@ptomato
Copy link
Collaborator

ptomato commented Nov 8, 2024

Looks like the polyfill fails one of the new Date.prototype.toTemporalInstant tests that were merged into test262 in the intervening time. I'll open another PR to fix that so we can update test262 past that commit.

@catamorphism Truly sorry that this quick bugfix is turning out to be so complicated to get merged!

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