« Bugzilla Issues Index
#1948 — 7.1.11 ToLength: Add an explicit + sign before the 0
- bug_id:
1948
- creation_ts:
2013-09-28 13:51:00 -0700
- short_desc:
7.1.11 ToLength: Add an explicit + sign before the 0
- delta_ts:
2013-10-29 09:45:40 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 19: September 27, 2013 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Claude Pache
- assigned_to:
Allen Wirfs-Brock
- commentid:
5619
- comment_count:
0
- who:
Claude Pache
- bug_when:
2013-09-28 13:51:00 -0700
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".
- commentid:
5921
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2013-10-21 12:20:43 -0700
fixed in rev20 editor's draft
- commentid:
6091
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2013-10-29 09:45:40 -0700
fixed in rev20 draft, Oct. 28, 2013