Changeset 15444 in webkit for trunk/JavaScriptCore/API/JSCallbackConstructor.cpp
- Timestamp:
- Jul 14, 2006, 9:16:30 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSCallbackConstructor.cpp
r15376 r15444 48 48 JSObjectRef thisRef = toRef(this); 49 49 50 size_t arg c= args.size();51 JSValueRef arg v[argc];52 for (size_t i = 0; i < arg c; i++)53 arg v[i] = toRef(args[i]);54 return toJS(m_callback(execRef, thisRef, arg c, 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()))); 55 55 } 56 56
Note:
See TracChangeset
for help on using the changeset viewer.