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

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


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


vladimir.olexa at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #10094|                            |review?
               Flag|                            |




------- Comment #9 from vladimir.olexa at gmail.com  2006-08-17 10:57 PDT -------
Created an attachment (id=10094)
 --> (http://bugzilla.opendarwin.org/attachment.cgi?id=10094&action=view)
lastIndexOf javascript mozilla extension function

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. 


-- 
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