tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 5462c55e9c4adf5ffc3efc3f5a1888c6f4424354
parent 7d1ace05c5a28c7b68aa836b3f42e3f722fb29fc
Author: André Bargull <andre.bargull@gmail.com>
Date:   Thu, 27 Nov 2025 10:03:34 +0000

Bug 1999315 - Part 4: Update step numbers in CalendarYearMonthFromFields. r=spidermonkey-reviewers,dminor

Differential Revision: https://phabricator.services.mozilla.com/D272024

Diffstat:
Mjs/src/builtin/temporal/Calendar.cpp | 13+++++--------
1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/js/src/builtin/temporal/Calendar.cpp b/js/src/builtin/temporal/Calendar.cpp @@ -3237,25 +3237,22 @@ bool js::temporal::CalendarYearMonthFromFields( MutableHandle<PlainYearMonth> result) { auto calendarId = calendar.identifier(); - // Step 1. + // Step 2. if (!CalendarResolveFields(cx, calendarId, fields, FieldType::YearMonth)) { return false; } - // Step 2. - int32_t firstDayIndex = 1; - - // Step 3. + // Step 1. (Reordered) Rooted<CalendarFields> resolvedFields(cx, CalendarFields{fields}); - resolvedFields.setDay(firstDayIndex); + resolvedFields.setDay(1); - // Step 4. + // Step 3. ISODate date; if (!CalendarDateToISO(cx, calendarId, resolvedFields, overflow, &date)) { return false; } - // Steps 5-6. + // Steps 4-5. return CreateTemporalYearMonth(cx, date, calendar, result); }