summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptengineagent.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-10-20 08:46:31 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2009-10-20 08:46:31 (GMT)
commite87b66fc81600e43eb1b9696c6e97d6c4ff4ab90 (patch)
tree7d0c29bcba56d9be5b6623f5e98b5b8e81e1bda2 /src/script/api/qscriptengineagent.cpp
parenta210a1efb3a255235ab22e618c61d0aaccba3d9f (diff)
parent1a11cc88e8516097e73d7aefc44c9a97ea0b5aef (diff)
downloadQt-e87b66fc81600e43eb1b9696c6e97d6c4ff4ab90.zip
Qt-e87b66fc81600e43eb1b9696c6e97d6c4ff4ab90.tar.gz
Qt-e87b66fc81600e43eb1b9696c6e97d6c4ff4ab90.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
Diffstat (limited to 'src/script/api/qscriptengineagent.cpp')
-rw-r--r--src/script/api/qscriptengineagent.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/api/qscriptengineagent.cpp b/src/script/api/qscriptengineagent.cpp
index bc2eea2..0ca7ecc 100644
--- a/src/script/api/qscriptengineagent.cpp
+++ b/src/script/api/qscriptengineagent.cpp
@@ -156,6 +156,7 @@ void QScriptEngineAgentPrivate::exceptionThrow(const JSC::DebuggerCallFrame& fra
QScriptValue value(engine->scriptValueFromJSCValue(frame.exception()));
q_ptr->exceptionThrow(sourceID, value, hasHandler);
engine->currentFrame = oldFrame;
+ engine->setCurrentException(value);
};
void QScriptEngineAgentPrivate::exceptionCatch(const JSC::DebuggerCallFrame& frame, intptr_t sourceID)
@@ -165,6 +166,7 @@ void QScriptEngineAgentPrivate::exceptionCatch(const JSC::DebuggerCallFrame& fra
QScriptValue value(engine->scriptValueFromJSCValue(frame.exception()));
q_ptr->exceptionCatch(sourceID, value);
engine->currentFrame = oldFrame;
+ engine->clearCurrentException();
}
void QScriptEngineAgentPrivate::atStatement(const JSC::DebuggerCallFrame& frame, intptr_t sourceID, int lineno, int column)