[webkit-reviews] review requested: [Bug 6252] JavaScript 1.6 Array.lastIndexOf : [Attachment 10094] lastIndexOf javascript mozilla extension function

bugzilla-request-daemon at opendarwin.org bugzilla-request-daemon at opendarwin.org
Thu Aug 17 10:57:53 PDT 2006


Vladimir Olexa <vladimir.olexa at gmail.com> has asked  for review:
Bug 6252: JavaScript 1.6 Array.lastIndexOf
http://bugzilla.opendarwin.org/show_bug.cgi?id=6252

Attachment 10094: lastIndexOf javascript mozilla extension function
http://bugzilla.opendarwin.org/attachment.cgi?id=10094&action=edit

------- Additional Comments from Vladimir Olexa <vladimir.olexa at gmail.com>
Actually, the specs are neither ambiguous nor contradicting. What they're
saying is that if the index is negative, calculate a new index by offsetting it
from the end of the array. If the calculated index is negative (e.g., array
length is 3 and index passed in is -5), then return -1. This patch fixes this
scenario adds that additional functionality.



More information about the webkit-reviews mailing list