diff options
author | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-07-27 16:13:21 (GMT) |
---|---|---|
committer | Benjamin Poulain <benjamin.poulain@nokia.com> | 2009-07-27 16:39:10 (GMT) |
commit | a8dae30f3825d0527a38499e13bd8e36485aac47 (patch) | |
tree | 0f42ae104da8a59d3f50e277b83ac29750610c40 /src/script/bridge | |
parent | da769c4d4bd890e98173baf406f5455052f09c1f (diff) | |
download | Qt-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.cpp | 4 |
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(); } } |