Skip to content

Commit

Permalink
Editorial: Using non-negative intetral Number insted of integral Numb…
Browse files Browse the repository at this point in the history
…er in ToLength (#3377)
  • Loading branch information
tmdghks authored and ljharb committed Oct 23, 2024
1 parent be9427b commit efc849b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -5655,11 +5655,11 @@ <h1>
<h1>
ToLength (
_argument_: an ECMAScript language value,
): either a normal completion containing an integral Number or a throw completion
): either a normal completion containing a non-negative integral Number or a throw completion
</h1>
<dl class="header">
<dt>description</dt>
<dd>It clamps and truncates _argument_ to an integral Number suitable for use as the length of an array-like object.</dd>
<dd>It clamps and truncates _argument_ to a non-negative integral Number suitable for use as the length of an array-like object.</dd>
</dl>
<emu-alg>
1. Let _len_ be ? ToIntegerOrInfinity(_argument_).
Expand Down

0 comments on commit efc849b

Please sign in to comment.