Reviewed by Maciej.
- Added names to functions.
- Removed GetPrivate/SetPrivate from callbackFunctions and callbackConstructors.
The private data idiom is that a JS object stores its native implementation
as private data. For functions and constructors, the native implementation is nothing
more than the callback they already store, so supporting private data, too,
confuses the idiom. If you *really* want, you can still create a custom
function with private data.
* API/JSCallbackConstructor.cpp:
* API/JSCallbackConstructor.h:
* API/JSCallbackFunction.cpp:
(KJS::JSCallbackFunction::JSCallbackFunction):
* API/JSCallbackFunction.h:
* API/JSCallbackObject.cpp:
(KJS::JSCallbackObject::staticFunctionGetter):
* API/JSObjectRef.cpp:
(JSObjectMakeFunction):
(JSObjectMakeFunctionWithBody):
(JSObjectGetPrivate):
(JSObjectSetPrivate):
* API/JSObjectRef.h:
* API/minidom.c:
(main):
* API/testapi.c:
(main):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15469 268f45cc-cd09-0410-ab3c-d52691b4dbfc
10 files changed