mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +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
13 changed files with 69 additions and 99 deletions
|
@ -153,7 +153,7 @@ ThrowCompletionOr<ZonedDateTime*> to_temporal_zoned_date_time(GlobalObject& glob
|
|||
field_names.append("offset");
|
||||
|
||||
// f. Let fields be ? PrepareTemporalFields(item, fieldNames, « "timeZone" »).
|
||||
auto* fields = TRY(prepare_temporal_fields(global_object, item_object, field_names, { "timeZone"sv }));
|
||||
auto* fields = TRY(prepare_temporal_fields(global_object, item_object, field_names, Vector<StringView> { "timeZone"sv }));
|
||||
|
||||
// g. Let timeZone be ! Get(fields, "timeZone").
|
||||
auto time_zone_value = MUST(fields->get(vm.names.timeZone));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue