Skip to content

Commit

Permalink
Editorial: tolength: remove superfluous +Infinity check (#738)
Browse files Browse the repository at this point in the history
The `+Infinity` check is superfluous as the `min` function takes care
of that as well.
  • Loading branch information
thefourtheye authored and bterlson committed Nov 23, 2016
1 parent 45e8905 commit 88a48ec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -3791,7 +3791,6 @@ <h1>ToLength ( _argument_ )</h1>
<emu-alg>
1. Let _len_ be ? ToInteger(_argument_).
1. If _len_ &le; *+0*, return *+0*.
1. If _len_ is *+&infin;*, return 2<sup>53</sup>-1.
1. Return min(_len_, 2<sup>53</sup>-1).
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit 88a48ec

Please sign in to comment.