Ignore:
Timestamp:
May 3, 2009, 2:02:04 PM (16 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

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

Roll JSC API number marshaling back in one last time (I hope).

WebCore:

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

Roll JSC API number marshaling back in one last time (I hope).

File:
1 edited

Legend:

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

    r43158 r43160  
    6262        Vector<JSValueRef, 16> arguments(argumentCount);
    6363        for (int i = 0; i < argumentCount; i++)
    64             arguments[i] = toRef(args.at(i));
    65            
    66         JSLock::DropAllLocks dropAllLocks(exec);
    67         return toJS(callback(ctx, constructorRef, argumentCount, arguments.data(), toRef(exec->exceptionSlot())));
     64            arguments[i] = toRef(exec, args.at(i));
     65
     66        JSValueRef exception = 0;
     67        JSObjectRef result;
     68        {
     69            JSLock::DropAllLocks dropAllLocks(exec);
     70            result = callback(ctx, constructorRef, argumentCount, arguments.data(), &exception);
     71        }
     72        if (exception)
     73            exec->setException(toJS(exec, exception));
     74        return toJS(result);
    6875    }
    6976   
Note: See TracChangeset for help on using the changeset viewer.