Skip to content

Commit

Permalink
updated internal List iteration as per tc39#2152
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Sep 2, 2020
1 parent 607d66f commit 2a4dae6
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -28380,9 +28380,7 @@ <h1>Math.hypot ( _value1_, _value2_, ..._values_ )</h1>
<emu-alg>
1. Let _numbers_ be a List containing _value1_, _value2_, and the elements of _values_ in order.
1. Let _onlyZero_ be *true*.
1. Repeat, while _numbers_ is not empty,
1. Let _number_ be the first element of _numbers_.
1. Remove the first element from _numbers_.
1. For each element _number_ of _numbers_, do
1. Let _n_ be ? ToNumber(_number_).
1. If _n_ is *NaN*, _n_ is *+&infin;*, or _n_ is *-&infin;*, return _n_.
1. If _n_ is not *+0* or _n_ is not *-0*, set _onlyZero_ to be *false*.
Expand Down Expand Up @@ -28467,9 +28465,7 @@ <h1>Math.max ( _value1_, _value2_, ..._values_ )</h1>
<emu-alg>
1. Let _numbers_ be a List containing _value1_, _value2_, and the elements of _values_ in order.
1. Let _highest_ be *-&infin;*.
1. Repeat, while _numbers_ is not empty,
1. Let _number_ be the first element of _numbers_.
1. Remove the first element from _numbers_.
1. For each element _number_ of _numbers_, do
1. Let _n_ be ? ToNumber(_number_).
1. If _n_ &gt; _highest_, set _highest_ to _n_.
1. Return _highest_.
Expand All @@ -28486,9 +28482,7 @@ <h1>Math.min ( _value1_, _value2_, ..._values_ )</h1>
<emu-alg>
1. Let _numbers_ be a List containing _value1_, _value2_, and the elements of _values_ in order.
1. Let _lowest_ be *+&infin;*.
1. Repeat, while _numbers_ is not empty,
1. Let _number_ be the first element of _numbers_.
1. Remove the first element from _numbers_.
1. For each element _number_ of _numbers_, do
1. Let _n_ be ? ToNumber(_number_).
1. If _n_ &lt; _lowest_, set _lowest_ to _n_.
1. Return _lowest_.
Expand Down

0 comments on commit 2a4dae6

Please sign in to comment.