diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-08-14 14:03:18 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-08-14 14:03:18 (GMT) |
commit | e21e9b5a400115291c883b9b85055a8355f3a30b (patch) | |
tree | 8072e84826692738e7f8f294cf747eece340c3fa /src/script/bridge | |
parent | ecc2422553aebd9db06baa9c7a23b21351625947 (diff) | |
download | Qt-e21e9b5a400115291c883b9b85055a8355f3a30b.zip Qt-e21e9b5a400115291c883b9b85055a8355f3a30b.tar.gz Qt-e21e9b5a400115291c883b9b85055a8355f3a30b.tar.bz2 |
use originalGlobalObject() instead of lexicalGlobalObject() where possible
No need to look up the global object via the scope chain since we have
a direct pointer to it already.
Diffstat (limited to 'src/script/bridge')
-rw-r--r-- | src/script/bridge/qscriptfunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/bridge/qscriptfunction.cpp b/src/script/bridge/qscriptfunction.cpp index f485bd8..396a787 100644 --- a/src/script/bridge/qscriptfunction.cpp +++ b/src/script/bridge/qscriptfunction.cpp @@ -119,7 +119,7 @@ JSC::JSObject* FunctionWrapper::proxyConstruct(JSC::ExecState *exec, JSC::JSObje QScriptValue result = self->data->function(ctx, QScriptEnginePrivate::get(eng_p)); #ifdef QT_BUILD_SCRIPT_LIB - if (JSC::Debugger* debugger = exec->lexicalGlobalObject()->debugger()) + if (JSC::Debugger* debugger = eng_p->originalGlobalObject()->debugger()) debugger->functionExit(QScriptValuePrivate::get(result)->jscValue, -1); #endif if (!result.isObject()) |