Bug 9495

Summary: Named inline functions can't be passed as arguments
Product: WebKit Reporter: yz <fick_el>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Major    
Priority: P2    
Version: 420+   
Hardware: All   
OS: OS X 10.4   

yz
Reported 2006-06-18 08:32:31 PDT
Safari fails with "Parse error" when passing named inline functions as arguments: str.replace(/./g,function () { return "X"; }); // Will work well str.replace(/./g,function rplc() { return "X"; }); // Will throw a Parse error exception Needless to mention, this works well in any other modern browser, including IE, Firefox and Opera.
Attachments
Alexey Proskuryakov
Comment 1 2006-06-18 10:19:57 PDT
This has been already fixed; you can verify the fix with a nightly build from <http://nightly.webkit.org>. *** This bug has been marked as a duplicate of 4698 ***
Note You need to log in before you can comment on or make changes to this bug.