diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp index e7a36bd5015..6358ee3c21a 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp @@ -230,7 +230,7 @@ ThrowCompletionOr calendar_month(VM& vm, Object& calendar, Object& date_ } // 12.2.10 CalendarMonthCode ( calendar, dateLike ), https://tc39.es/proposal-temporal/#sec-temporal-calendarmonthcode -ThrowCompletionOr calendar_month_code(VM& vm, Object& calendar, Object& date_like) +ThrowCompletionOr calendar_month_code(VM& vm, Object& calendar, Object& date_like) { // 1. Let result be ? Invoke(calendar, "monthCode", « dateLike »). auto result = TRY(Value(&calendar).invoke(vm, vm.names.monthCode, &date_like)); @@ -240,7 +240,7 @@ ThrowCompletionOr calendar_month_code(VM& vm, Object& calendar return vm.throw_completion(ErrorType::TemporalInvalidCalendarFunctionResult, vm.names.monthCode.as_string(), vm.names.undefined.as_string()); // 3. Return ? ToString(result). - return result.to_deprecated_string(vm); + return result.to_string(vm); } // 12.2.11 CalendarDay ( calendar, dateLike ), https://tc39.es/proposal-temporal/#sec-temporal-calendarday diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h index 1483635e612..aad45f3a7bc 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.h @@ -48,7 +48,7 @@ ThrowCompletionOr calendar_date_add(VM&, Object& calendar, Value dat ThrowCompletionOr calendar_date_until(VM&, Object& calendar, Value one, Value two, Object& options, FunctionObject* date_until = nullptr); ThrowCompletionOr calendar_year(VM&, Object& calendar, Object& date_like); ThrowCompletionOr calendar_month(VM&, Object& calendar, Object& date_like); -ThrowCompletionOr calendar_month_code(VM&, Object& calendar, Object& date_like); +ThrowCompletionOr calendar_month_code(VM&, Object& calendar, Object& date_like); ThrowCompletionOr calendar_day(VM&, Object& calendar, Object& date_like); ThrowCompletionOr calendar_day_of_week(VM&, Object& calendar, Object& date_like); ThrowCompletionOr calendar_day_of_year(VM&, Object& calendar, Object& date_like);