Bug 75678

Summary: Array.prototype.lastIndexOf ignores undefined fromIndex.
Product: WebKit Reporter: Gavin Barraclough <barraclough>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Fix sam: review+

Gavin Barraclough
Reported 2012-01-05 17:26:32 PST
array.lastIndexOf(x, undefined) is equivalent to array.lastIndexOf(x, 0), not array.lastIndexOf(x)
Attachments
Fix (2.69 KB, patch)
2012-01-05 17:29 PST, Gavin Barraclough
sam: review+
Gavin Barraclough
Comment 1 2012-01-05 17:29:24 PST
Gavin Barraclough
Comment 2 2012-01-05 17:37:54 PST
Fixed in r104258
Note You need to log in before you can comment on or make changes to this bug.