From ea023ac62c6ce0ef8368eb045ccebf554b83e223 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Thu, 23 Jun 2022 19:59:03 +0100 Subject: [PATCH] LibJS: Add Number conversion in AddDu/ToOrSubtractDu/FromPlainYearMonth This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/823300c --- Userland/Libraries/LibJS/Runtime/Temporal/PlainYearMonth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainYearMonth.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/PlainYearMonth.cpp index b699ff9936..6771c46fd9 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainYearMonth.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainYearMonth.cpp @@ -388,7 +388,7 @@ ThrowCompletionOr add_duration_to_or_subtract_duration_from_pla day = 1; } - // 11. Perform ! CreateDataPropertyOrThrow(fields, "day", day). + // 11. Perform ! CreateDataPropertyOrThrow(fields, "day", 𝔽(day)). MUST(fields->create_data_property_or_throw(vm.names.day, Value(day))); // 12. Let date be ? CalendarDateFromFields(calendar, fields).