Skip to content

Commit

Permalink
Editorial: Remove 𝔽 conversion for input to PartitionNumberPattern
Browse files Browse the repository at this point in the history
Fixes #151
  • Loading branch information
anba authored and ben-allen committed Oct 16, 2023
1 parent 0fe9fb5 commit aaa38ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ contributors: Ujjwal Sharma, Younies Mahmoud
1. Else,
1. Set _separated_ to *false*.
1. Let _last_ be the last element of _result_.
1. Let _parts_ be ! PartitionNumberPattern(_nf_, 𝔽(_value_)).
1. Let _parts_ be ! PartitionNumberPattern(_nf_, _value_).
1. For each Record { [[Type]], [[Value]] } _part_ of _parts_, do
1. Append the new Record { [[Type]]: _part_.[[Type]], [[Value]]: _part_.[[Value]], [[Unit]]: _numberFormatUnit_ } to the end of _last_.
1. If _unit_ is *"hours"* or *"minutes"*, then
Expand All @@ -316,7 +316,7 @@ contributors: Ujjwal Sharma, Younies Mahmoud
1. Perform ! CreateDataPropertyOrThrow(_nfOpts_, *"unitDisplay"*, _style_).
1. Let _nf_ be ! Construct(%NumberFormat%, « _durationFormat_.[[Locale]], _nfOpts_ »).
1. Let _list_ be a new empty List.
1. Let _parts_ be ! PartitionNumberPattern(_nf_, 𝔽(_value_)).
1. Let _parts_ be ! PartitionNumberPattern(_nf_, _value_).
1. For each Record { [[Type]], [[Value]] } _part_ in _parts_, do
1. Append the new Record { [[Type]]: _part_.[[Type]], [[Value]]: _part_.[[Value]], [[Unit]]: _numberFormatUnit_ } to the end of _list_.
1. Append _list_ to the end of _result_.
Expand Down

0 comments on commit aaa38ac

Please sign in to comment.