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/JSCallbackConstructor.cpp

    r15376 r15444  
    4848    JSObjectRef thisRef = toRef(this);
    4949
    50     size_t argc = args.size();
    51     JSValueRef argv[argc];
    52     for (size_t i = 0; i < argc; i++)
    53         argv[i] = toRef(args[i]);
    54     return toJS(m_callback(execRef, thisRef, argc, argv, toRef(exec->exceptionSlot())));
     50    size_t argumentCount = args.size();
     51    JSValueRef arguments[argumentCount];
     52    for (size_t i = 0; i < argumentCount; i++)
     53        arguments[i] = toRef(args[i]);
     54    return toJS(m_callback(execRef, thisRef, argumentCount, arguments, toRef(exec->exceptionSlot())));
    5555}
    5656
Note: See TracChangeset for help on using the changeset viewer.