Changeset 43158 in webkit for trunk/JavaScriptCore/API/JSCallbackFunction.cpp
- Timestamp:
- May 3, 2009, 12:56:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSCallbackFunction.cpp
r43157 r43158 56 56 Vector<JSValueRef, 16> arguments(argumentCount); 57 57 for (int i = 0; i < argumentCount; i++) 58 arguments[i] = toRef( exec,args.at(i));58 arguments[i] = toRef(args.at(i)); 59 59 60 JSValueRef exception = 0; 61 JSValueRef result; 62 { 63 JSLock::DropAllLocks dropAllLocks(exec); 64 result = static_cast<JSCallbackFunction*>(functionObject)->m_callback(execRef, functionRef, thisObjRef, argumentCount, arguments.data(), &exception); 65 } 66 if (exception) 67 exec->setException(toJS(exec, exception)); 68 69 return toJS(exec, result); 60 JSLock::DropAllLocks dropAllLocks(exec); 61 return toJS(static_cast<JSCallbackFunction*>(functionObject)->m_callback(execRef, functionRef, thisObjRef, argumentCount, arguments.data(), toRef(exec->exceptionSlot()))); 70 62 } 71 63
Note:
See TracChangeset
for help on using the changeset viewer.