Ignore:
Timestamp:
Jul 16, 2006, 9:41:01 PM (19 years ago)
Author:
ggaren
Message:

Approved by Maciej, RS by Beth.


JSObjectMakeFunction -> JSObjectMakeFunctionWithCallback
JSObjectMakeFunctionWithBody -> JSObjectMakeFunction


because the latter is more common, and more fundamental, than the former.

  • API/APICast.h: (toJS):
  • API/JSBase.h:
  • API/JSCallbackObject.cpp: (KJS::JSCallbackObject::getOwnPropertySlot): (KJS::JSCallbackObject::put): (KJS::JSCallbackObject::deleteProperty): (KJS::JSCallbackObject::getPropertyNames): (KJS::JSCallbackObject::staticValueGetter): (KJS::JSCallbackObject::staticFunctionGetter):
  • API/JSClassRef.cpp: (OpaqueJSClass::OpaqueJSClass): (OpaqueJSClass::~OpaqueJSClass):
  • API/JSClassRef.h:
  • API/JSObjectRef.cpp: (JSClassCreate): (JSObjectMakeFunctionWithCallback): (JSObjectMakeFunction): (OpaqueJSPropertyNameArray::OpaqueJSPropertyNameArray): (JSObjectCopyPropertyNames):
  • API/JSObjectRef.h:
  • API/minidom.c: (main):
  • API/testapi.c: (main):
  • ChangeLog:
  • JavaScriptCore.exp:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSObjectRef.cpp

    r15474 r15480  
    4444JSClassRef JSClassCreate(JSClassDefinition* definition)
    4545{
    46     JSClassRef jsClass = new __JSClass(definition);
     46    JSClassRef jsClass = new OpaqueJSClass(definition);
    4747    return JSClassRetain(jsClass);
    4848}
     
    7676}
    7777
    78 JSObjectRef JSObjectMakeFunction(JSContextRef context, JSStringRef name, JSObjectCallAsFunctionCallback callAsFunction)
     78JSObjectRef JSObjectMakeFunctionWithCallback(JSContextRef context, JSStringRef name, JSObjectCallAsFunctionCallback callAsFunction)
    7979{
    8080    JSLock lock;
     
    9292}
    9393
    94 JSObjectRef JSObjectMakeFunctionWithBody(JSContextRef context, JSStringRef name, unsigned parameterCount, const JSStringRef parameterNames[], JSStringRef body, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception)
     94JSObjectRef JSObjectMakeFunction(JSContextRef context, JSStringRef name, unsigned parameterCount, const JSStringRef parameterNames[], JSStringRef body, JSStringRef sourceURL, int startingLineNumber, JSValueRef* exception)
    9595{
    9696    JSLock lock;
     
    298298}
    299299
    300 struct __JSPropertyNameArray
    301 {
    302     __JSPropertyNameArray() : refCount(0)
     300struct OpaqueJSPropertyNameArray
     301{
     302    OpaqueJSPropertyNameArray() : refCount(0)
    303303    {
    304304    }
     
    314314    ExecState* exec = toJS(context);
    315315   
    316     JSPropertyNameArrayRef propertyNames = new __JSPropertyNameArray();
     316    JSPropertyNameArrayRef propertyNames = new OpaqueJSPropertyNameArray();
    317317    jsObject->getPropertyNames(exec, propertyNames->array);
    318318   
Note: See TracChangeset for help on using the changeset viewer.