diff options
Diffstat (limited to 'Source/WebCore/bridge/qt/qt_runtime.cpp')
-rw-r--r-- | Source/WebCore/bridge/qt/qt_runtime.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/WebCore/bridge/qt/qt_runtime.cpp b/Source/WebCore/bridge/qt/qt_runtime.cpp index 6912422d0..84335e8ca 100644 --- a/Source/WebCore/bridge/qt/qt_runtime.cpp +++ b/Source/WebCore/bridge/qt/qt_runtime.cpp @@ -1589,12 +1589,11 @@ void QtConnectionObject::execute(void** argv) args[i] = convertQVariantToValue(m_context, m_rootObject, QVariant(argType, argv[i+1]), ignoredException); } - JSValueRef call_exception = 0; + JSValueRef callException = 0; ExecState* exec = toJS(m_context); - JSObjectCallAsFunction(m_context, m_receiverFunction, m_receiver, argc, args.data(), &call_exception); - if (call_exception) { - WebCore::reportException(exec, toJS(exec, call_exception)); - } + JSObjectCallAsFunction(m_context, m_receiverFunction, m_receiver, argc, args.data(), &callException); + if (callException) + WebCore::reportException(exec, toJS(exec, callException)); } bool QtConnectionObject::match(JSContextRef context, QObject* sender, int signalIndex, JSObjectRef receiver, JSObjectRef receiverFunction) |