diff options
author | BodilessSleeper <ralesarcevic@gmail.com> | 2022-12-30 20:01:41 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-31 00:05:20 +0100 |
commit | c65df44eee2c7814c4eb38601c29a4e36308ebb8 (patch) | |
tree | 8664dbd4eab60ac282fba8c4667df11b71e0c0d0 /Userland | |
parent | 84db0c8dbf4c332e1ca134730efe7be3cc6c82d2 (diff) | |
download | serenity-c65df44eee2c7814c4eb38601c29a4e36308ebb8.zip |
LibJS: Fix spec link and spec comment in PlainYearMonth
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/PlainYearMonth.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainYearMonth.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/PlainYearMonth.cpp index b429c5cfe4..cec9eaf007 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainYearMonth.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainYearMonth.cpp @@ -287,7 +287,7 @@ ThrowCompletionOr<Duration*> difference_temporal_plain_year_month(VM& vm, Differ return MUST(create_temporal_duration(vm, sign * result.years, sign * result.months, 0, 0, 0, 0, 0, 0, 0, 0)); } -// 9.5.8 AddDurationToOrSubtractDurationFromPlainYearMonth ( operation, yearMonth, temporalDurationLike, options ), https://tc39.es/proposal-temporal/#sec-temporal-addtemporalplainyearmonth +// 9.5.8 AddDurationToOrSubtractDurationFromPlainYearMonth ( operation, yearMonth, temporalDurationLike, options ), https://tc39.es/proposal-temporal/#sec-temporal-adddurationtoorsubtractdurationfromplainyearmonth ThrowCompletionOr<PlainYearMonth*> add_duration_to_or_subtract_duration_from_plain_year_month(VM& vm, ArithmeticOperation operation, PlainYearMonth& year_month, Value temporal_duration_like, Value options_value) { auto& realm = *vm.current_realm(); @@ -323,7 +323,7 @@ ThrowCompletionOr<PlainYearMonth*> add_duration_to_or_subtract_duration_from_pla // 9. If sign < 0, then if (sign < 0) { - // a. Let dayFromCalendar be ? CalendarDaysInMonth(calendar, yearMonth). + // a. Let day be ? CalendarDaysInMonth(calendar, yearMonth). day = TRY(calendar_days_in_month(vm, calendar, year_month)); } // 10. Else, |