archives

« Bugzilla Issues Index

#1948 — 7.1.11 ToLength: Add an explicit + sign before the 0


Step 3 of the algorithm of the abstract operation ToLength reads:

3. If len ≤ 0, then return 0.

In the face of negative numbers, it may be good to be very explicit (like in the ToNumber and the various To(U)int* algorithms), by saying: "... return +0".


fixed in rev20 editor's draft


fixed in rev20 draft, Oct. 28, 2013