Closed Bug 2042239 Opened 5 months ago Closed 5 months ago

Implement needs-consensus PR from May 2026 affecting Temporal.Duration rounding

Categories

(Core :: JavaScript Engine, task, P1)

task

Tracking

()

RESOLVED FIXED
153 Branch
Tracking Status
firefox153 --- fixed

People

(Reporter: ptomato, Assigned: ptomato)

References

(Blocks 1 open bug)

Details

Attachments

(1 external file)

Upstream issue: https://github.com/tc39/proposal-temporal/issues/3316
Test262: https://github.com/tc39/test262/pull/5054

Spec fix reached consensus at May 2026 TC39 meeting.

There is a condition triggering the special case for avoiding a
disambiguation when calculating the startEpochNs of the bounding window.
This condition is not correct when largestUnit ≠ smallestUnit, and the
smallest unit is 0 while a larger unit is nonzero. The condition only
checks that the smallest unit (r1) is 0, while it should check that all
larger units are 0 as well.

This fix corresponds to a needs-consensus PR that reached TC39 consensus
in the meeting of 2026-05-19.

Upstream links: https://github.com/tc39/proposal-temporal/issues/3316,
https://github.com/tc39/proposal-temporal/pull/3319,
https://github.com/tc39/test262/pull/5054

Tests will be pulled in along with the next test262 update.

Assignee: nobody → philip.chimento
Status: NEW → ASSIGNED
Blocks: temporal
Severity: -- → N/A
Priority: -- → P1
Status: ASSIGNED → RESOLVED
Closed: 5 months ago
Resolution: --- → FIXED
Target Milestone: --- → 153 Branch
QA Whiteboard: [qa-triage-done-c154/b153]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: