mirror of
https://github.com/RGBCube/serenity
synced 2025-06-28 21:22:08 +00:00
LibJS: Remove infallibility markers from some Intl.DurationFormat AOs
This is an editorial change in the Intl.DurationFormat proposal. See:
fa2b3d0
This commit is contained in:
parent
3aeb7a41c0
commit
0086a3acdb
2 changed files with 7 additions and 7 deletions
|
@ -204,7 +204,7 @@ i8 duration_record_sign(Temporal::DurationRecord const& record)
|
|||
// 1.1.5 IsValidDurationRecord ( record ), https://tc39.es/proposal-intl-duration-format/#sec-isvaliddurationrecord
|
||||
bool is_valid_duration_record(Temporal::DurationRecord const& record)
|
||||
{
|
||||
// 1. Let sign be ! DurationRecordSign(record).
|
||||
// 1. Let sign be DurationRecordSign(record).
|
||||
auto sign = duration_record_sign(record);
|
||||
|
||||
// 2. For each row of Table 1, except the header row, in table order, do
|
||||
|
@ -338,7 +338,7 @@ Vector<PatternPartition> partition_duration_format_pattern(VM& vm, DurationForma
|
|||
// h. Let value be duration.[[<valueSlot>]].
|
||||
auto value = duration.*value_slot;
|
||||
|
||||
// i. Let nfOpts be ! OrdinaryObjectCreate(null).
|
||||
// i. Let nfOpts be OrdinaryObjectCreate(null).
|
||||
auto number_format_options = Object::create(realm, nullptr);
|
||||
|
||||
// j. If unit is "seconds", "milliseconds", or "microseconds", then
|
||||
|
@ -485,7 +485,7 @@ Vector<PatternPartition> partition_duration_format_pattern(VM& vm, DurationForma
|
|||
}
|
||||
}
|
||||
|
||||
// 4. Let lfOpts be ! OrdinaryObjectCreate(null).
|
||||
// 4. Let lfOpts be OrdinaryObjectCreate(null).
|
||||
auto list_format_options = Object::create(realm, nullptr);
|
||||
|
||||
// 5. Perform ! CreateDataPropertyOrThrow(lfOpts, "type", "unit").
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue