Ignore:
Timestamp:
May 3, 2009, 12:27:42 PM (16 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2009-05-02 Sam Weinig <[email protected]>

Roll JSC API number marshaling back in.

WebCore:

2009-05-02 Sam Weinig <[email protected]>

Roll JSC API number marshaling back in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSCallbackFunction.cpp

    r43138 r43157  
    5656    Vector<JSValueRef, 16> arguments(argumentCount);
    5757    for (int i = 0; i < argumentCount; i++)
    58         arguments[i] = toRef(args.at(i));
     58        arguments[i] = toRef(exec, args.at(i));
    5959
    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);
    6270}
    6371
Note: See TracChangeset for help on using the changeset viewer.