bind should handle member functions
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Dec 2011 20:59:53 +0000 (20:59 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 14 Dec 2011 20:59:53 +0000 (20:59 +0000)
commita7e01e0000a3f1560925b5cc4e745478cf61ae12
treea1877613947c18d5a2a201d10295b347474f2078
parent81124569f435573eb5ba15ae6a7c32e210bbdd57
bind should handle member functions
https://bugs.webkit.org/show_bug.cgi?id=74529

Reviewed by Sam Weinig.

Source/JavaScriptCore:

Add FunctionWrapper partial specializations for member function pointers.

* wtf/Functional.h:
(WTF::C::):

Tools:

Add tests.

* TestWebKitAPI/Tests/WTF/Functional.cpp:
(TestWebKitAPI::A::A):
(TestWebKitAPI::A::f):
(TestWebKitAPI::A::addF):
(TestWebKitAPI::TEST):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@102813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/wtf/Functional.h
Tools/ChangeLog
Tools/TestWebKitAPI/Tests/WTF/Functional.cpp