« Bugzilla Issues Index
#924 — 15.4.4.15 Array.prototype.lastIndexOf - fromIndex is converted directly with ToInteger
- bug_id:
924
- creation_ts:
2012-11-03 15:11:00 -0700
- short_desc:
15.4.4.15 Array.prototype.lastIndexOf - fromIndex is converted directly with ToInteger
- delta_ts:
2015-10-14 17:59:10 -0700
- product:
ECMA-262, Editions 5 and 5.1
- component:
technical content
- version:
Edition 5.1
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
WONTFIX
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Asen Bozhilov
- assigned_to:
Allen Wirfs-Brock
- cc:
brterlso
- commentid:
2411
- comment_count:
0
- who:
Asen Bozhilov
- bug_when:
2012-11-03 15:11:07 -0700
In step 5 if `fromIndex' is passed it is converted directly with ToInteger algorithm. Using NaN or undefined for `fromIndex' performs search from 0 instead of the length of the array.
- commentid:
14804
- comment_count:
1
- who:
Brian Terlson
- bug_when:
2015-10-14 17:59:10 -0700
Seems doubtful this can change considering all the runtimes I tested (Chakra, V8, SM) behave interoperably and per this specification. Proposals to change these semantics should go through the proposal process.