summaryrefslogtreecommitdiffstats
path: root/src/script/bridge
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-07-27 16:13:21 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-07-27 16:39:10 (GMT)
commita8dae30f3825d0527a38499e13bd8e36485aac47 (patch)
tree0f42ae104da8a59d3f50e277b83ac29750610c40 /src/script/bridge
parentda769c4d4bd890e98173baf406f5455052f09c1f (diff)
downloadQt-a8dae30f3825d0527a38499e13bd8e36485aac47.zip
Qt-a8dae30f3825d0527a38499e13bd8e36485aac47.tar.gz
Qt-a8dae30f3825d0527a38499e13bd8e36485aac47.tar.bz2
Remove the uncaughtException, use the JSC exception instead
Use the exception from JSC::exec instead of QScriptEngin::uncaughtException. A few more tests are passing for qscriptvalue and qscriptqobject. Reviewed-by: Kent Hansen
Diffstat (limited to 'src/script/bridge')
-rw-r--r--src/script/bridge/qscriptqobject.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/script/bridge/qscriptqobject.cpp b/src/script/bridge/qscriptqobject.cpp
index 43c97aa..5ea5df1 100644
--- a/src/script/bridge/qscriptqobject.cpp
+++ b/src/script/bridge/qscriptqobject.cpp
@@ -1248,12 +1248,11 @@ void QObjectDelegate::put(QScriptObject *object, JSC::ExecState* exec,
JSC::JSValue value, JSC::PutPropertySlot &slot)
{
QByteArray name = qtStringFromJSCUString(propertyName.ustring()).toLatin1();
- QScriptEnginePrivate *const eng = static_cast<QScript::GlobalObject*>(exec->lexicalGlobalObject())->engine;
QObject *qobject = data->value;
if (!qobject) {
QString message = QString::fromLatin1("cannot access member `%0' of deleted QObject")
.arg(QString::fromLatin1(name));
- eng->uncaughtException = JSC::throwError(exec, JSC::GeneralError, qtStringToJSCUString(message));
+ JSC::throwError(exec, JSC::GeneralError, qtStringToJSCUString(message));
return;
}
@@ -1988,7 +1987,6 @@ void QObjectConnectionManager::execute(int slotIndex, void **argv)
JSC::call(exec, slot, callType, callData, thisObject, jscArgs);
if (exec->hadException()) {
- engine->uncaughtException = exec->exception();
engine->emitSignalHandlerException();
}
}