X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/81345200c95645a1b0d2635520f96ad55dfde63f..ed1e77d3adeb83d26fd1dfb16dd84cabdcefd250:/runtime/CallData.cpp?ds=inline diff --git a/runtime/CallData.cpp b/runtime/CallData.cpp index 6d00109..31c28c3 100644 --- a/runtime/CallData.cpp +++ b/runtime/CallData.cpp @@ -39,12 +39,11 @@ JSValue call(ExecState* exec, JSValue functionObject, CallType callType, const C 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& 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(); }