LibJS: Invoke CalendarDateToISO recursively correctly

Copy-paste mistake that becomes apparent in Temporal.ZonedDateTime
tests.
This commit is contained in:
Timothy Flynn 2024-11-24 20:40:20 -05:00 committed by Andreas Kling
parent fc3ebd7efd
commit 8ab765a3eb
Notes: github-actions[bot] 2024-11-26 10:04:27 +00:00

View file

@ -730,7 +730,7 @@ ThrowCompletionOr<ISODate> calendar_date_to_iso(VM& vm, StringView calendar, Cal
// 2. Return an implementation-defined ISO Date Record, or throw a RangeError exception, as described below.
// FIXME: Create an ISODateRecord based on an ISO8601 calendar for now. See also: CalendarResolveFields.
return calendar_month_day_to_iso_reference_date(vm, "iso8601"sv, fields, overflow);
return calendar_date_to_iso(vm, "iso8601"sv, fields, overflow);
}
// 12.2.20 CalendarMonthDayToISOReferenceDate ( calendar, fields, overflow ), https://tc39.es/proposal-temporal/#sec-temporal-calendarmonthdaytoisoreferencedate