Changeset 43157 in webkit for trunk/JavaScriptCore/API/JSCallbackFunction.cpp
- Timestamp:
- May 3, 2009, 12:27:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSCallbackFunction.cpp
r43138 r43157 56 56 Vector<JSValueRef, 16> arguments(argumentCount); 57 57 for (int i = 0; i < argumentCount; i++) 58 arguments[i] = toRef( args.at(i));58 arguments[i] = toRef(exec, args.at(i)); 59 59 60 JSLock::DropAllLocks dropAllLocks(exec); 61 return toJS(static_cast<JSCallbackFunction*>(functionObject)->m_callback(execRef, functionRef, thisObjRef, argumentCount, arguments.data(), toRef(exec->exceptionSlot()))); 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); 62 70 } 63 71
Note:
See TracChangeset
for help on using the changeset viewer.