@@ -266,8 +266,8 @@ contributors: Ujjwal Sharma, Younies Mahmoud
266
266
1. Let _displaySlot_ be the Display Slot value.
267
267
1. Let _valueSlot_ be the Value Slot value.
268
268
1. Let _unit_ be the Unit value.
269
- 1. Let _style_ be the current value of the _styleSlot_ slot of _durationFormat_.
270
- 1. Let _nextStyle_ be the current value of the _nextStyleSlot_ slot of _durationFormat_.
269
+ 1. Let _style_ be _durationFormat_.[[<_styleSlot_>]] .
270
+ 1. Let _nextStyle_ be _durationFormat_[[<_nextStyleSlot_>]] .
271
271
1. Let _nfOpts_ be ! OrdinaryObjectCreate(`null`).
272
272
1. Let _done_ be *false*.
273
273
1. If _unit_ is `"seconds"`, `"milliseconds"`, or `"microseconds"` and _nextStyle_ is `"numeric"`, then
@@ -280,14 +280,14 @@ contributors: Ujjwal Sharma, Younies Mahmoud
280
280
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, `"minimumFractionDigits"`, _durationFormat_.[[FractionalDigits]]).
281
281
1. Set _done_ to *true*.
282
282
1. Else,
283
- 1. Let _value_ be the current value of the _valueSlot_ slot of _duration_.
283
+ 1. Let _value_ be _duration_[[<_valueSlot_>]] .
284
284
1. If _style_ is `"2-digit"`, then
285
285
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, `"minimumIntegerDigits"`, `2`).
286
286
1. If _value_ is 0 and _display_ is `"auto"`, then
287
287
1. Skip to the next iteration.
288
288
1. Let _nf_ be ! Construct(%NumberFormat%, « _durationFormat_.[[Locale]], _nfOpts_ »).
289
289
1. Let _dataLocale_ be _durationFormat_.[[DataLocale]].
290
- 1. Let _dataLocaleData_ be the current value of the _dataLocale_ slot of %DurationFormat%.[[LocaleData]].
290
+ 1. Let _dataLocaleData_ be %DurationFormat%.[[LocaleData]][[<_dataLocale_> ]].
291
291
1. If _style_ is `"2-digit"` or `"numeric"`, then
292
292
1. Let _num_ be ! FormatNumeric(_nf_, 𝔽(_value_)).
293
293
1. Append the new Record { [[Type]]: _unit_, [[Value]]: _num_} to the end of _result_.
@@ -298,7 +298,7 @@ contributors: Ujjwal Sharma, Younies Mahmoud
298
298
1. Let _num_ be ! PartitionNumberPattern(_nf_, 𝔽(_value_)).
299
299
1. Let _pr_ be ! Construct(%PluralRules%, « _durationFormat_.[[Locale]] »).
300
300
1. Let _prv_ be ! ResolvePlural(_pr_, 𝔽(_value_)).
301
- 1. Let _template_ be the current value of the _prv_ slot of the _unit_ slot of the _style_ slot of _dataLocaleData_.[[formats]].
301
+ 1. Let _template_ be _dataLocaleData_.[[formats]][[<_style_>]][[<_unit_>]][[<_prv_> ]].
302
302
1. Let _parts_ be ! MakePartsList(_template_, _unit_, _num_).
303
303
1. Let _concat_ be an empty String.
304
304
1. For each element _part_ in _parts_, in List order, do
0 commit comments