Skip to content

Update test262#3313

Merged
ptomato merged 5 commits into
mainfrom
last-polyfill-fixes
May 11, 2026
Merged

Update test262#3313
ptomato merged 5 commits into
mainfrom
last-polyfill-fixes

Conversation

@ptomato
Copy link
Copy Markdown
Collaborator

@ptomato ptomato commented Apr 30, 2026

Update test262 to the latest commit and make the necessary changes in the reference code to pass all new tests.

@ptomato ptomato added the run snapshot tests Add this label to a PR if you want the snapshot tests to run on it. label Apr 30, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.39%. Comparing base (faef102) to head (a39f9d8).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3313      +/-   ##
==========================================
+ Coverage   97.83%   98.39%   +0.55%     
==========================================
  Files          22       22              
  Lines       10725    10763      +38     
  Branches     1856     1866      +10     
==========================================
+ Hits        10493    10590      +97     
+ Misses        215      161      -54     
+ Partials       17       12       -5     

☔ 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.

Copy link
Copy Markdown
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.

Please fill in the "See: #...." line in your first commit message

ptomato added 5 commits May 11, 2026 09:56
When constructing a PlainMonthDay from a property bag, it's possible to
give a year that is way out of range. The spec text says to bail out
early in that case, to avoid performing expensive calculations to
validate the month and day. Previously, the polyfill did not do this
early bail-out step.

See: #2997
This is clearer because isTemporalObject doesn't include
Temporal.Duration.
Got these from running through TypeScript compiler.
As per #3309 we change
Temporal.Duration.prototype.round step 28.d ! to ?, so we can no longer
omit the IsValidDuration check here in the polyfill. (This has no
observable effect, since out-of-range durations cause a later step to
throw anyway, but we may as well update things here.
@ptomato ptomato force-pushed the last-polyfill-fixes branch from 2fecd24 to a39f9d8 Compare May 11, 2026 16:59
@ptomato ptomato merged commit 4df4199 into main May 11, 2026
10 checks passed
@ptomato ptomato deleted the last-polyfill-fixes branch May 11, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

run snapshot tests Add this label to a PR if you want the snapshot tests to run on it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants