summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
Diffstat (limited to 'src/script')
-rw-r--r--src/script/bridge/qscriptqobject.cpp14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/script/bridge/qscriptqobject.cpp b/src/script/bridge/qscriptqobject.cpp
index 30c33e1..1dcf602 100644
--- a/src/script/bridge/qscriptqobject.cpp
+++ b/src/script/bridge/qscriptqobject.cpp
@@ -1812,16 +1812,14 @@ void QObjectConnectionManager::execute(int slotIndex, void **argv)
JSC::CallData callData;
JSC::CallType callType = slot.getCallData(callData);
- if (callType == JSC::CallTypeJS) {
- if (exec->hadException())
- exec->clearException(); // ### otherwise JSC asserts
- (void)JSC::asFunction(slot)->call(exec, thisObject, jscArgs);
- } else if (callType == JSC::CallTypeHost) {
- (void)callData.native.function(exec, JSC::asObject(slot), thisObject, jscArgs);
- }
-
if (exec->hadException())
+ exec->clearException(); // ### otherwise JSC asserts
+ JSC::call(exec, slot, callType, callData, thisObject, jscArgs);
+
+ if (exec->hadException()) {
+ engine->uncaughtException = exec->exception();
engine->emitSignalHandlerException();
+ }
}
QObjectConnectionManager::QObjectConnectionManager(QScriptEnginePrivate *eng)