mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:57: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:
parent
98dc964649
commit
ea023ac62c
1 changed files with 1 additions and 1 deletions
|
@ -388,7 +388,7 @@ ThrowCompletionOr<PlainYearMonth*> add_duration_to_or_subtract_duration_from_pla
|
||||||
day = 1;
|
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)));
|
MUST(fields->create_data_property_or_throw(vm.names.day, Value(day)));
|
||||||
|
|
||||||
// 12. Let date be ? CalendarDateFromFields(calendar, fields).
|
// 12. Let date be ? CalendarDateFromFields(calendar, fields).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue