From cee54d27253c07123d56117152ea13502f8113cd Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 27 Jun 2022 23:11:57 +0100 Subject: [PATCH] LibJS: Replace one use of BalanceISODate with CreateISODateRecord This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/7a7ddb7 --- Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp index 3f76c9de89..d9df7cbf3a 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDateTime.cpp @@ -366,8 +366,8 @@ ThrowCompletionOr difference_iso_date_time(GlobalObject& global_ // 5. Let dateSign be ! CompareISODate(y2, mon2, d2, y1, mon1, d1). auto date_sign = compare_iso_date(year2, month2, day2, year1, month1, day1); - // 6. Let adjustedDate be BalanceISODate(y1, mon1, d1). - auto adjusted_date = balance_iso_date(year1, month1, day1); + // 6. Let adjustedDate be CreateISODateRecord(y1, mon1, d1). + auto adjusted_date = create_iso_date_record(year1, month1, day1); // 7. If timeSign is -dateSign, then if (time_sign == -date_sign) {