return exec->interpreter()->executeCall(exec, asObject(functionObject), callType, callData, thisValue, args);
}
-JSValue call(ExecState* exec, JSValue functionObject, CallType callType, const CallData& callData, JSValue thisValue, const ArgList& args, JSValue* exception)
+JSValue call(ExecState* exec, JSValue functionObject, CallType callType, const CallData& callData, JSValue thisValue, const ArgList& args, NakedPtr<Exception>& returnedException)
{
JSValue result = call(exec, functionObject, callType, callData, thisValue, args);
if (exec->hadException()) {
- if (exception)
- *exception = exec->exception();
+ returnedException = exec->exception();
exec->clearException();
return jsUndefined();
}