Bug 70290 - Exception ordering in String.prototype.replace
Summary: Exception ordering in String.prototype.replace
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-17 17:16 PDT by Gavin Barraclough
Modified: 2011-10-17 17:35 PDT (History)
0 users

See Also:


Attachments
Fix (4.84 KB, patch)
2011-10-17 17:17 PDT, Gavin Barraclough
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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