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

RS by Maciej.


Global replace in the API of argc/argv with argumentCount/arguments.

File:
1 edited

Legend:

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

    r15443 r15444  
    238238}
    239239
    240 JSValueRef JSObjectCallAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argc, JSValueRef argv[], JSValueRef* exception)
     240JSValueRef JSObjectCallAsFunction(JSContextRef context, JSObjectRef object, JSObjectRef thisObject, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
    241241{
    242242    JSLock lock;
     
    249249   
    250250    List argList;
    251     for (size_t i = 0; i < argc; i++)
    252         argList.append(toJS(argv[i]));
     251    for (size_t i = 0; i < argumentCount; i++)
     252        argList.append(toJS(arguments[i]));
    253253
    254254    JSValueRef result = toRef(jsObject->call(exec, jsThisObject, argList)); // returns NULL if object->implementsCall() is false
     
    268268}
    269269
    270 JSObjectRef JSObjectCallAsConstructor(JSContextRef context, JSObjectRef object, size_t argc, JSValueRef argv[], JSValueRef* exception)
     270JSObjectRef JSObjectCallAsConstructor(JSContextRef context, JSObjectRef object, size_t argumentCount, JSValueRef arguments[], JSValueRef* exception)
    271271{
    272272    JSLock lock;
     
    275275   
    276276    List argList;
    277     for (size_t i = 0; i < argc; i++)
    278         argList.append(toJS(argv[i]));
     277    for (size_t i = 0; i < argumentCount; i++)
     278        argList.append(toJS(arguments[i]));
    279279   
    280280    JSObjectRef result = toRef(jsObject->construct(exec, argList)); // returns NULL if object->implementsCall() is false
Note: See TracChangeset for help on using the changeset viewer.