1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 01:17:34 +00:00

LibJS: Add Number conversion in AddDu/ToOrSubtractDu/FromPlainYearMonth

This is an editorial change in the Temporal spec.

See: 823300c
This commit is contained in:
Linus Groh 2022-06-23 19:59:03 +01:00
parent 98dc964649
commit ea023ac62c

View file

@ -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).