diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-07-27 18:04:28 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-07-27 18:04:28 (GMT) |
commit | 40bf78cc21d7f4821b0a841d646cd6fff8130513 (patch) | |
tree | 41ca11c7397e890b0b7aea071dfae446a066b0b0 /src/script | |
parent | 8923339fa086cbf6adc404fb18dcda6c1206985d (diff) | |
download | Qt-40bf78cc21d7f4821b0a841d646cd6fff8130513.zip Qt-40bf78cc21d7f4821b0a841d646cd6fff8130513.tar.gz Qt-40bf78cc21d7f4821b0a841d646cd6fff8130513.tar.bz2 |
compile
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/api/qscriptengine.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp index 1b7d0e4..6814931 100644 --- a/src/script/api/qscriptengine.cpp +++ b/src/script/api/qscriptengine.cpp @@ -2167,7 +2167,7 @@ QScriptValue QScriptEngine::evaluate(const QString &program, const QString &file JSC::ExecState* exec = d->currentFrame; exec->clearException(); if (!exec->globalData().dynamicGlobalObject) - exec->globalData().dynamicGlobalObject = d->globalObject; + exec->globalData().dynamicGlobalObject = d->originalGlobalObject(); JSC::ScopeChain scopeChain = JSC::ScopeChain(exec->scopeChain()); JSC::Completion comp = JSC::evaluate(exec, scopeChain, JSC::makeSource(jscProgram, jscFileName, lineNumber)); @@ -2257,7 +2257,7 @@ void QScriptEngine::popContext() bool QScriptEngine::hasUncaughtException() const { Q_D(const QScriptEngine); - JSC::ExecState* exec = d->globalObject->globalExec(); + JSC::ExecState* exec = d->globalExec(); return exec->hadException(); } @@ -2275,7 +2275,7 @@ bool QScriptEngine::hasUncaughtException() const QScriptValue QScriptEngine::uncaughtException() const { Q_D(const QScriptEngine); - JSC::ExecState* exec = d->globalObject->globalExec(); + JSC::ExecState* exec = d->globalExec(); return const_cast<QScriptEnginePrivate*>(d)->scriptValueFromJSCValue(exec->exception()); } |