summaryrefslogtreecommitdiffstats
path: root/src/script/api/qscriptengine.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-10-29 03:54:47 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-10-29 03:54:47 (GMT)
commitbfbded95056d43a65b2c9ef1fa90bfd40adc6472 (patch)
treec20ababb5a2e124e9c7ac796ace1d52380470bd3 /src/script/api/qscriptengine.cpp
parente8bc4cebe9963a8a4534a5febbd606a6e4d6a332 (diff)
parentf425c08d4f2e7f061a0ee8e4a1eee2b17fa64962 (diff)
downloadQt-bfbded95056d43a65b2c9ef1fa90bfd40adc6472.zip
Qt-bfbded95056d43a65b2c9ef1fa90bfd40adc6472.tar.gz
Qt-bfbded95056d43a65b2c9ef1fa90bfd40adc6472.tar.bz2
Merge branch '4.6' of ../qt into kinetic-declarativeui
Conflicts: src/script/api/qscriptengine.cpp src/script/api/qscriptprogram.cpp src/script/api/qscriptprogram.h src/script/api/qscriptprogram_p.h tests/auto/qscriptengine/tst_qscriptengine.cpp tests/auto/qscriptengineagent/tst_qscriptengineagent.cpp tools/qdoc3/test/qt-inc.qdocconf
Diffstat (limited to 'src/script/api/qscriptengine.cpp')
-rw-r--r--src/script/api/qscriptengine.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp
index f695a77..de759c6 100644
--- a/src/script/api/qscriptengine.cpp
+++ b/src/script/api/qscriptengine.cpp
@@ -1179,15 +1179,16 @@ JSC::JSValue QScriptEnginePrivate::evaluateHelper(JSC::ExecState *exec, intptr_t
JSC::EvalExecutable *executable,
bool &compile)
{
+ Q_Q(QScriptEngine);
JSC::JSLock lock(false); // ### hmmm
QBoolBlocker inEvalBlocker(inEval, true);
- q_func()->currentContext()->activationObject(); //force the creation of a context for native function;
+ q->currentContext()->activationObject(); //force the creation of a context for native function;
JSC::Debugger* debugger = originalGlobalObject()->debugger();
if (debugger)
debugger->evaluateStart(sourceId);
- exec->clearException();
+ q->clearExceptions();
JSC::DynamicGlobalObjectScope dynamicGlobalObjectScope(exec, exec->scopeChain()->globalObject());
if (compile) {
@@ -2215,6 +2216,9 @@ QScriptValue QScriptEngine::evaluate(const QString &program, const QString &file
/*!
\internal
\since 4.6
+
+ Evaluates the given \a program and returns the result of the
+ evaluation.
*/
QScriptValue QScriptEngine::evaluate(const QScriptProgram &program)
{