summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-06-23 19:59:03 +0100
committerLinus Groh <mail@linusgroh.de>2022-06-24 22:12:03 +0100
commitea023ac62c6ce0ef8368eb045ccebf554b83e223 (patch)
tree74633b958d2a3a2fef3b3f737e643cfb33cfebaf /Userland
parent98dc964649fc9bae6c08e4285fdc394043cc58d2 (diff)
downloadserenity-ea023ac62c6ce0ef8368eb045ccebf554b83e223.zip
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
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/PlainYearMonth.cpp2
1 files changed, 1 insertions, 1 deletions
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<PlainYearMonth*> 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).