Skip to content

Commit

Permalink
Editorial: Simplify PR925 (#931)
Browse files Browse the repository at this point in the history
There are no reason we need to put the "Let _currency_ be _numberFormat_.[[Currency]]." line in a separate if block. Move that down
  • Loading branch information
FrankYFTang authored Oct 11, 2024
1 parent 7508197 commit 65b9ce3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/numberformat.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ <h1>Intl.NumberFormat ( [ _locales_ [ , _options_ ] ] )</h1>
1. Set _numberFormat_.[[NumberingSystem]] to _r_.[[nu]].
1. Perform ? SetNumberFormatUnitOptions(_numberFormat_, _options_).
1. Let _style_ be _numberFormat_.[[Style]].
1. If _style_ is *"currency"*, then
1. Let _currency_ be _numberFormat_.[[Currency]].
1. Let _notation_ be ? GetOption(_options_, *"notation"*, ~string~, « *"standard"*, *"scientific"*, *"engineering"*, *"compact"* », *"standard"*).
1. Set _numberFormat_.[[Notation]] to _notation_.
1. If _style_ is *"currency"* and *"notation"* is *"standard"*, then
1. Let _currency_ be _numberFormat_.[[Currency]].
1. Let _cDigits_ be CurrencyDigits(_currency_).
1. Let _mnfdDefault_ be _cDigits_.
1. Let _mxfdDefault_ be _cDigits_.
Expand Down

0 comments on commit 65b9ce3

Please sign in to comment.