@@ -816,13 +816,11 @@ <h1>
816
816
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"signDisplay"* , *"never"* ).
817
817
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"useGrouping"* , *false* ).
818
818
1. If _durationFormat_ .[[FractionalDigits]] is *undefined* , then
819
- 1. Let _maximumFractionDigits_ be * 9* <sub >𝔽</sub >.
820
- 1. Let _minimumFractionDigits_ be * +0* <sub >𝔽</sub >.
819
+ 1. Perform ! CreateDataPropertyOrThrow( _nfOpts_ , *"maximumFractionDigits"* , * 9* <sub >𝔽</sub >) .
820
+ 1. Perform ! CreateDataPropertyOrThrow( _nfOpts_ , *"minimumFractionDigits"* , * +0* <sub >𝔽</sub >) .
821
821
1. Else,
822
- 1. Let _maximumFractionDigits_ be _durationFormat_ .[[FractionalDigits]].
823
- 1. Let _minimumFractionDigits_ be _durationFormat_ .[[FractionalDigits]].
824
- 1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"maximumFractionDigits"* , _maximumFractionDigits_ ).
825
- 1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"minimumFractionDigits"* , _minimumFractionDigits_ ).
822
+ 1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"maximumFractionDigits"* , _durationFormat_ .[[FractionalDigits]]).
823
+ 1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"minimumFractionDigits"* , _durationFormat_ .[[FractionalDigits]]).
826
824
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"roundingMode"* , *"trunc"* ).
827
825
1. Let _nf_ be ! Construct(%Intl.NumberFormat%, « _durationFormat_ .[[Locale]], _nfOpts_ »).
828
826
1. Let _secondsParts_ be PartitionNumberPattern(_nf_ , _secondsValue_ ).
@@ -966,22 +964,18 @@ <h1>
966
964
1. If NextUnitFractional(_durationFormat_ , _unit_ ) is *true* , then
967
965
1. Set _value_ to _value_ + ComputeFractionalDigits(_durationFormat_ , _duration_ ).
968
966
1. If _durationFormat_ .[[FractionalDigits]] is *undefined* , then
969
- 1. Let _maximumFractionDigits_ be * 9* <sub >𝔽</sub >.
970
- 1. Let _minimumFractionDigits_ be * +0* <sub >𝔽</sub >.
967
+ 1. Perform ! CreateDataPropertyOrThrow( _nfOpts_ , *"maximumFractionDigits"* , * 9* <sub >𝔽</sub >) .
968
+ 1. Perform ! CreateDataPropertyOrThrow( _nfOpts_ , *"minimumFractionDigits"* , * +0* <sub >𝔽</sub >) .
971
969
1. Else,
972
- 1. Let _maximumFractionDigits_ be _durationFormat_ .[[FractionalDigits]].
973
- 1. Let _minimumFractionDigits_ be _durationFormat_ .[[FractionalDigits]].
974
- 1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"maximumFractionDigits"* , _maximumFractionDigits_ ).
975
- 1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"minimumFractionDigits"* , _minimumFractionDigits_ ).
970
+ 1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"maximumFractionDigits"* , _durationFormat_ .[[FractionalDigits]]).
971
+ 1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"minimumFractionDigits"* , _durationFormat_ .[[FractionalDigits]]).
976
972
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"roundingMode"* , *"trunc"* ).
977
973
1. Set _numericUnitFound_ to *true* .
978
- 1. If _value_ is not 0 or _display_ is *"always"* , then
979
- 1. Let _numberingSystem_ be _durationFormat_ .[[NumberingSystem]].
980
- 1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"numberingSystem"* , _numberingSystem_ ).
974
+ 1. If _display_ is *"always"* or _value_ is not 0, then
975
+ 1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"numberingSystem"* , _durationFormat_ .[[NumberingSystem]]).
981
976
1. If _signDisplayed_ is *true* , then
982
977
1. Set _signDisplayed_ to *false* .
983
- 1. If _value_ is 0 and DurationSign(_duration_ ) is -1, then
984
- 1. Set _value_ to ~negative-zero~ .
978
+ 1. If _value_ is 0 and DurationSign(_duration_ ) is -1, set _value_ to ~negative-zero~ .
985
979
1. Else,
986
980
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_ , *"signDisplay"* , *"never"* ).
987
981
1. Let _numberFormatUnit_ be the NumberFormat Unit value of the current row.
0 commit comments