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: Date.prototype.toTemporalInstant should not be a constructor #3040

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

ptomato
Copy link
Collaborator

@ptomato ptomato commented Nov 8, 2024

This PR updates test262 and adds a fix for a newly-added test that the reference code fails.

A test for this was recently added to test262. Per the spec text,
Date.prototype.toTemporalInstant should not be contstructible. However,
the previous implementation did allow it to be called as a constructor.
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@897604e). Learn more about missing BASE report.
Report is 2 commits behind head on main.

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

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

Copy link
Member

@jasonwilliams jasonwilliams left a comment

Choose a reason for hiding this comment

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

Polyfill change LGTM
Could you explain the issue with the staging/Intl402/Temporal/old/non-iso-calendars.js test? Is it related to the polyfill change?

Copy link
Collaborator

@Ms2ger Ms2ger left a comment

Choose a reason for hiding this comment

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

Thanks!

@Ms2ger Ms2ger merged commit 4040485 into main Nov 11, 2024
10 checks passed
@Ms2ger Ms2ger deleted the date-prototype-totemporalinstant-no-constructor branch November 11, 2024 14:48
@Ms2ger
Copy link
Collaborator

Ms2ger commented Nov 11, 2024

Polyfill change LGTM Could you explain the issue with the staging/Intl402/Temporal/old/non-iso-calendars.js test? Is it related to the polyfill change?

No, it's because of a change to test262 that's being pulled in along with the test for this polyfill change

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