summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/script/api/qscriptengine.cpp4
-rw-r--r--src/script/bridge/qscriptfunction.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp
index a87872a..207521d 100644
--- a/src/script/api/qscriptengine.cpp
+++ b/src/script/api/qscriptengine.cpp
@@ -2160,7 +2160,7 @@ QScriptValue QScriptEngine::evaluate(const QString &program, const QString &file
#ifdef QT_BUILD_SCRIPT_LIB
intptr_t sourceId = source.provider()->asID();
- JSC::Debugger* debugger = exec->lexicalGlobalObject()->debugger();
+ JSC::Debugger* debugger = d->originalGlobalObject()->debugger();
exec->globalData().scriptpool->startEvaluating(source);
if (debugger)
debugger->evaluateStart(sourceId);
@@ -2291,7 +2291,7 @@ JSC::CallFrame *QScriptEnginePrivate::pushContext(JSC::CallFrame *exec, const JS
//JSC doesn't create default created object for native functions. so we do it
JSC::JSValue prototype = callee->get(exec, exec->propertyNames().prototype);
JSC::Structure *structure = prototype.isObject() ? JSC::asObject(prototype)->inheritorID()
- : exec->lexicalGlobalObject()->emptyObjectStructure();
+ : originalGlobalObject()->emptyObjectStructure();
thisObject = new (exec) QScriptObject(structure);
}
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())