[Webkit-unassigned] [Bug 9495] New: Named inline functions can't be passed as arguments

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Sun Jun 18 08:32:32 PDT 2006


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

           Summary: Named inline functions can't be passed as arguments
           Product: WebKit
           Version: 420+ (nightly)
          Platform: All
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: major
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: fick_el at yahoo.com


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.


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