Implement needs-consensus PR from May 2026 affecting Temporal.Duration rounding
Categories
(Core :: JavaScript Engine, task, P1)
Tracking
()
| 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.
| Assignee | ||
Comment 1•5 months ago
|
||
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.
Updated•5 months ago
|
Updated•5 months ago
|
Updated•4 months ago
|
Description
•