Bug 70290

Summary: Exception ordering in String.prototype.replace
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 oliver: review+

Description Gavin Barraclough 2011-10-17 17:16:06 PDT
If pattern is not a regexp, it should be converted toString before the replacement value has it's toString conversion called.
Comment 1 Gavin Barraclough 2011-10-17 17:17:57 PDT
Created attachment 111353 [details]
Fix
Comment 2 Gavin Barraclough 2011-10-17 17:35:43 PDT
Fixed in r97680