Skip to content

Commit cea3b68

Browse files
anbaryzokuken
authored andcommitted
Creating internal Intl objects is infallible
1 parent f1e8ed3 commit cea3b68

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spec.emu

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ contributors: Ujjwal Sharma, Younies Mahmoud
285285
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, `"minimumIntegerDigits"`, `2`).
286286
1. If _value_ is 0 and _display_ is `"auto"`, then
287287
1. Skip to the next iteration.
288-
1. Let _nf_ be ? Construct(%NumberFormat%, « _durationFormat_.[[Locale]], _nfOpts_ »).
288+
1. Let _nf_ be ! Construct(%NumberFormat%, « _durationFormat_.[[Locale]], _nfOpts_ »).
289289
1. Let _num_ be ! FormatNumeric(_durationFormat_.[[NumberFormat]], 𝔽(_value_)).
290290
1. Let _dataLocale_ be _durationFormat_.[[DataLocale]].
291291
1. Let _dataLocaleData_ be the current value of the _dataLocale_ slot of %DurationFormat%.[[LocaleData]].
@@ -295,7 +295,7 @@ contributors: Ujjwal Sharma, Younies Mahmoud
295295
1. Let _separator_ be _dataLocaleData_.[[formats]].[[digital]].[[separator]].
296296
1. Append the new Record { [[Type]]: `"literal"`, [[Value]]: _separator_} to the end of _result_.
297297
1. Else,
298-
1. Let _pr_ be ? Construct(%PluralRules%, « _durationFormat_.[[Locale]] »).
298+
1. Let _pr_ be ! Construct(%PluralRules%, « _durationFormat_.[[Locale]] »).
299299
1. Let _prv_ be ! ResolvePlural(_pr_, 𝔽(_value_)).
300300
1. Let _template_ be the current value of the _prv_ slot of the _unit_ slot of the _style_ slot of _dataLocaleData_.[[formats]].
301301
1. Let _parts_ be ! MakePartsList(_template_, _unit_, _num_).
@@ -307,7 +307,7 @@ contributors: Ujjwal Sharma, Younies Mahmoud
307307
1. Append the new Record { [[Type]]: _unit_, [[Value]]: _concat_ } to the end of _result_.
308308
1. If _done_ is *true*, then
309309
1. Stop iteration.
310-
1. Let _lf_ be ? Construct(%ListFormat%, « _durationFormat_.[[Locale]] »).
310+
1. Let _lf_ be ! Construct(%ListFormat%, « _durationFormat_.[[Locale]] »).
311311
1. Set _result_ to ! CreatePartsFromList(_lf_, _result_).
312312
1. Return _result_.
313313
</emu-alg>
@@ -431,7 +431,7 @@ contributors: Ujjwal Sharma, Younies Mahmoud
431431
1. Perform ? RequireInternalSlot(_df_, [[InitializedDurationFormat]]).
432432
1. Let _record_ be ? ToDurationRecord(_duration_).
433433
1. If IsValidDurationRecord(_record_) is *false*, throw a *RangeError* exception.
434-
1. Let _formatted_ be ? PartitionDurationFormatPattern(_df_, _record_).
434+
1. Let _formatted_ be ! PartitionDurationFormatPattern(_df_, _record_).
435435
1. Let _result_ be a new empty String.
436436
1. For each element _part_ in _formatted_, in List order, do
437437
1. Set _result_ to the string-concatenation of _result_ and _part_.[[Value]].
@@ -448,7 +448,7 @@ contributors: Ujjwal Sharma, Younies Mahmoud
448448
1. Perform ? RequireInternalSlot(_df_, [[InitializedDurationFormat]]).
449449
1. Let _record_ be ? ToDurationRecord(_duration_).
450450
1. If IsValidDurationRecord(_record_) is *false*, throw a *RangeError* exception.
451-
1. Let _formatted_ be ? PartitionDurationFormatPattern(_df_, _record_).
451+
1. Let _formatted_ be ! PartitionDurationFormatPattern(_df_, _record_).
452452
1. Let _result_ be ! ArrayCreate(0).
453453
1. Let _n_ be 0.
454454
1. For each element _part_ in _formatted_, in List order, do

0 commit comments

Comments
 (0)