mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 12:06:07 +00:00
LibJS: Fold PreparePartialTemporalFields into PrepareTemporalFields
This is an editorial change in the Temporal spec.
See: 6ed1835
This commit is contained in:
parent
631f270ac1
commit
3e6561c75f
Notes:
sideshowbarker
2024-07-17 10:13:36 +09:00
Author: https://github.com/linusg
Commit: 3e6561c75f
Pull-request: https://github.com/SerenityOS/serenity/pull/14278
Reviewed-by: https://github.com/Dexesttp
13 changed files with 69 additions and 99 deletions
|
@ -96,7 +96,7 @@ ThrowCompletionOr<PlainMonthDay*> to_temporal_month_day(GlobalObject& global_obj
|
|||
auto field_names = TRY(calendar_fields(global_object, *calendar, { "day"sv, "month"sv, "monthCode"sv, "year"sv }));
|
||||
|
||||
// e. Let fields be ? PrepareTemporalFields(item, fieldNames, «»).
|
||||
auto* fields = TRY(prepare_temporal_fields(global_object, item_object, field_names, {}));
|
||||
auto* fields = TRY(prepare_temporal_fields(global_object, item_object, field_names, Vector<StringView> {}));
|
||||
|
||||
// f. Let month be ? Get(fields, "month").
|
||||
auto month = TRY(fields->get(vm.names.month));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue