mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:57:35 +00:00
LibJS: Update DurationFormat AO text to align with ECMA-402 and Temporal
These are editorial changes in the Intl.DurationFormat proposal. See:71b291b
d0cc6fa
d4b35bb
This commit is contained in:
parent
a86b840c64
commit
cab1cce522
3 changed files with 21 additions and 22 deletions
|
@ -101,12 +101,12 @@ ThrowCompletionOr<Object*> DurationFormatConstructor::construct(FunctionObject&
|
|||
// 16. Let prevStyle be the empty String.
|
||||
auto previous_style = String::empty();
|
||||
|
||||
// 17. For each row in Table 1, except the header row, in table order, do
|
||||
// 17. For each row of Table 1, except the header row, in table order, do
|
||||
for (auto const& duration_instances_component : duration_instances_components) {
|
||||
// a. Let styleSlot be the Style Slot value.
|
||||
// a. Let styleSlot be the Style Slot value of the current row.
|
||||
auto style_slot = duration_instances_component.set_style_slot;
|
||||
|
||||
// b. Let displaySlot be the Display Slot value.
|
||||
// b. Let displaySlot be the Display Slot value of the current row.
|
||||
auto display_slot = duration_instances_component.set_display_slot;
|
||||
|
||||
// c. Let unit be the Unit value.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue