Skip to content

Conversation

@ptomato
Copy link
Collaborator

@ptomato ptomato commented Jan 8, 2026

See tc39/proposal-intl-era-monthcode#101. This changes the general outline of ISODateSurpasses so that it parallels the outline of NonISODateSurpasses in the Intl Era Monthcode proposal as proposed in the PR.

Also refactors the polyfill code, but keeps the optimizations we already had regarding not passing weeks and days to ISODateSurpasses.

(Draft; merge if tc39/proposal-intl-era-monthcode#101 is adopted)

@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3245   +/-   ##
=======================================
  Coverage   97.94%   97.94%           
=======================================
  Files          22       22           
  Lines       10401    10408    +7     
  Branches     1814     1816    +2     
=======================================
+ Hits        10187    10194    +7     
  Misses        196      196           
  Partials       18       18           

☔ 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 ptomato marked this pull request as ready for review January 15, 2026 19:56
@ptomato ptomato force-pushed the editorial-isodatesurpasses branch from ff80068 to eae02f2 Compare January 27, 2026 01:03
@ptomato
Copy link
Collaborator Author

ptomato commented Jan 27, 2026

Updated this PR to make the non-ISO8601 calculations in the polyfill work according to the adopted normative change in proposal-intl-era-monthcode.

@ptomato ptomato force-pushed the editorial-isodatesurpasses branch from eae02f2 to f407a7f Compare January 27, 2026 17:40
These can be calculated calendar-independently, so we can save the cost
of converting an ISO date to calendar space and back for no reason.
See tc39/proposal-intl-era-monthcode#101. This
changes the general outline of ISODateSurpasses so that it parallels
the outline of NonISODateSurpasses in the Intl Era/Month Code proposal
as proposed in the PR, and adds the CompareSurpasses operation.

Also refactors the polyfill code, but keeps the optimizations we already
had regarding not passing weeks and days to ISODateSurpasses.
@ptomato ptomato force-pushed the editorial-isodatesurpasses branch from f407a7f to aa7a1ae Compare January 27, 2026 21:48
@ptomato
Copy link
Collaborator Author

ptomato commented Jan 27, 2026

I pulled in the new test262 tests covering the Intl Era/Month Code change, and did some optimization on the polyfill. (The way I'd originally written this PR, was quite a lot slower than the status quo.) I'd appreciate a review on this soon.

jenkins-chromium-github-sync bot pushed a commit to armarok/chromium that referenced this pull request Jan 28, 2026
Uplift of unicode-org/icu4x#7514 (needs manual
fixes)

This implements the spec changes from
tc39/proposal-intl-era-monthcode#101 and
tc39/proposal-temporal#3245

Change-Id: Ifec012334bbc2fb9b6c988ac4c32765d7444d8df
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7525051
Commit-Queue: Manish Goregaokar <manishearth@google.com>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1575639}
mohd-akram pushed a commit to gsource-mirror/chromium-src-third_party-rust that referenced this pull request Jan 28, 2026
Uplift of unicode-org/icu4x#7514 (needs manual
fixes)

This implements the spec changes from
tc39/proposal-intl-era-monthcode#101 and
tc39/proposal-temporal#3245

Change-Id: Ifec012334bbc2fb9b6c988ac4c32765d7444d8df
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7525051
Commit-Queue: Manish Goregaokar <manishearth@google.com>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1575639}
NOKEYCHECK=True
GitOrigin-RevId: 2f5a9f8494dceff61afdffead41d8fd755869f36
@Ms2ger Ms2ger merged commit 137d270 into main Jan 28, 2026
10 checks passed
@Ms2ger Ms2ger deleted the editorial-isodatesurpasses branch January 28, 2026 08:40
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