[Webkit-unassigned] [Bug 6252] JavaScript 1.6 Array.lastIndexOf

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Thu Jun 22 04:03:46 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=6252





------- Comment #8 from karlfschramm at mac.com  2006-06-22 04:03 PDT -------
Created an attachment (id=8961)
 --> (http://bugzilla.opendarwin.org/attachment.cgi?id=8961&action=view)
lastIndexOf improved patch

This patch should fix some of the problems seen in the previous iterations.
However, there's a confusing bit in the docs about what to do when the index is
negative:

"Note that even when the index is negative, the array is still searched from
back to front. If the calculated index is less than 0, -1 is returned, i.e. the
array will not be searched."

The second sentence seems to contradict the first (is the array searched or
not??). This patch went with the second sentence. Firefox, it seems, went with
the first.

When that mess gets sorted this patch will need a changelog & a test case.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list