Skip to content

Update test262#3313

Open
ptomato wants to merge 5 commits intomainfrom
last-polyfill-fixes
Open

Update test262#3313
ptomato wants to merge 5 commits intomainfrom
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 added 5 commits March 30, 2026 20:30
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: #....
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 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 (2fecd24).
⚠️ Report is 2 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.

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.

1 participant