Skip to content

Commit 64cc5db

Browse files
anbaryzokuken
authored andcommitted
Use computed slot names
1 parent 2ed31b8 commit 64cc5db

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
@@ -266,8 +266,8 @@ contributors: Ujjwal Sharma, Younies Mahmoud
266266
1. Let _displaySlot_ be the Display Slot value.
267267
1. Let _valueSlot_ be the Value Slot value.
268268
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_>]].
271271
1. Let _nfOpts_ be ! OrdinaryObjectCreate(`null`).
272272
1. Let _done_ be *false*.
273273
1. If _unit_ is `"seconds"`, `"milliseconds"`, or `"microseconds"` and _nextStyle_ is `"numeric"`, then
@@ -280,14 +280,14 @@ contributors: Ujjwal Sharma, Younies Mahmoud
280280
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, `"minimumFractionDigits"`, _durationFormat_.[[FractionalDigits]]).
281281
1. Set _done_ to *true*.
282282
1. Else,
283-
1. Let _value_ be the current value of the _valueSlot_ slot of _duration_.
283+
1. Let _value_ be _duration_[[<_valueSlot_>]].
284284
1. If _style_ is `"2-digit"`, then
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.
288288
1. Let _nf_ be ! Construct(%NumberFormat%, « _durationFormat_.[[Locale]], _nfOpts_ »).
289289
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_>]].
291291
1. If _style_ is `"2-digit"` or `"numeric"`, then
292292
1. Let _num_ be ! FormatNumeric(_nf_, 𝔽(_value_)).
293293
1. Append the new Record { [[Type]]: _unit_, [[Value]]: _num_} to the end of _result_.
@@ -298,7 +298,7 @@ contributors: Ujjwal Sharma, Younies Mahmoud
298298
1. Let _num_ be ! PartitionNumberPattern(_nf_, 𝔽(_value_)).
299299
1. Let _pr_ be ! Construct(%PluralRules%, « _durationFormat_.[[Locale]] »).
300300
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_>]].
302302
1. Let _parts_ be ! MakePartsList(_template_, _unit_, _num_).
303303
1. Let _concat_ be an empty String.
304304
1. For each element _part_ in _parts_, in List order, do

0 commit comments

Comments
 (0)