Skip to content

Conversation

@ptomato
Copy link
Collaborator

@ptomato ptomato commented Oct 31, 2025

Discovered by comparing the snapshot tests against other implementations. h/t @catamorphism for figuring out where the bug was.

The spec is correct, no change needed.

Update the snapshots accordingly.

Regression from 7b924d4.

Discovered by comparing the snapshot tests against other
implementations. h/t Tim Chevalier for figuring out where the bug was.

The spec is correct, no change needed.

Update the snapshots accordingly.

Regression from 7b924d4.
@ptomato ptomato added bug non-prod-polyfill THIS POLYFILL IS NOT FOR PRODUCTION USE! labels Oct 31, 2025
@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.91%. Comparing base (4f53c1c) to head (a673e03).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3173   +/-   ##
=======================================
  Coverage   96.91%   96.91%           
=======================================
  Files          22       22           
  Lines       10209    10219   +10     
  Branches     1839     1839           
=======================================
+ Hits         9894     9904   +10     
  Misses        266      266           
  Partials       49       49           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

ptomato added a commit to ptomato/test262 that referenced this pull request Oct 31, 2025
Bug observed in the proposal-temporal reference code, caused by improper
implementation of AddTime
(https://tc39.es/proposal-temporal/#sec-temporal-addtime) where the
advice in Step 2 was not followed correctly.

See tc39/proposal-temporal#3173
@ptomato
Copy link
Collaborator Author

ptomato commented Oct 31, 2025

Test262 tests in tc39/test262#4629

ptomato added a commit to ptomato/test262 that referenced this pull request Oct 31, 2025
Bug observed in the proposal-temporal reference code, caused by improper
implementation of AddTime
(https://tc39.es/proposal-temporal/#sec-temporal-addtime) where the
advice in Step 2 was not followed correctly.

See tc39/proposal-temporal#3173
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.

Nice catch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug non-prod-polyfill THIS POLYFILL IS NOT FOR PRODUCTION USE!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants