« Bugzilla Issues Index
#291 — Don’t use the variable name “posInt” for signed integers
- bug_id:
291
- creation_ts:
2012-03-04 13:03:00 -0800
- short_desc:
Don’t use the variable name “posInt” for signed integers
- delta_ts:
2015-10-03 14:28:44 -0700
- product:
ECMA-262, Editions 5 and 5.1
- component:
editorial issues
- version:
Edition 5.1
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Axel Rauschmayer
- assigned_to:
Allen Wirfs-Brock
- cc:
brterlso
- commentid:
722
- comment_count:
0
- who:
Axel Rauschmayer
- bug_when:
2012-03-04 13:03:14 -0800
Example: ECMA-262, Sect. 9.5:
Let posInt be sign(number) * floor(abs(number)).
posInt suggests “positive integer”. It’s probably better to use a different name.
- commentid:
14756
- comment_count:
1
- who:
Brian Terlson
- bug_when:
2015-10-03 14:28:44 -0700
Fixed in ES2015.