WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 4698
9495
Named inline functions can't be passed as arguments
https://bugs.webkit.org/show_bug.cgi?id=9495
Summary
Named inline functions can't be passed as arguments
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug