Showing the changes to libraries/script-engine/src/v8/ScriptObjectV8Proxy.cpp (1 of 5 files). Show all
Unified · Split
| @@ -1255,9 +1255,14 @@ int ScriptSignalV8Proxy::qt_metacall(QMetaObject::Call call, int id, void** argu · 1254 unmodified lines | |||
| 1255 | v8::TryCatch tryCatch(isolate); | 1255 | v8::TryCatch tryCatch(isolate); |
| 1256 | callback->Call(functionContext, v8This, numArgs, args); | 1256 | callback->Call(functionContext, v8This, numArgs, args); |
| 1257 | if (tryCatch.HasCaught()) { | 1257 | if (tryCatch.HasCaught()) { |
| 1258 | qCDebug(scriptengine) << "Signal proxy " << fullName() << " connection call failed: \"" | 1258 | QString errorMessage(QString("Signal proxy ") + fullName() + " connection call failed: \"" |
| 1259 | << _engine->formatErrorMessageFromTryCatch(tryCatch) | 1259 | + _engine->formatErrorMessageFromTryCatch(tryCatch) |
| 1260 | << "\nThis provided: " << conn.thisValue.get()->IsObject(); | 1260 | + "\nThis provided: " + QString::number(conn.thisValue.get()->IsObject())); |
| 1261 | if (_engine->_manager) { | ||
| 1262 | _engine->_manager->scriptErrorMessage(errorMessage); | ||
| 1263 | } else { | ||
| 1264 | qDebug(scriptengine_v8) << errorMessage; | ||
| 1265 | } | ||
| 1261 | 1266 | ||
| 1262 | _engine->setUncaughtException(tryCatch, "Error in signal proxy"); | 1267 | _engine->setUncaughtException(tryCatch, "Error in signal proxy"); |
| 1263 | } | 1268 | } |