aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4runtime.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2019-04-26 09:39:56 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-06-30 14:17:38 +0200
commitd04547299d568e8cc7b7d1b4a2dee68b04c429b8 (patch)
tree2418fc49163314f3874eae45947e4d094f9b6650 /src/qml/jsruntime/qv4runtime.cpp
parent68079d84c75c5a99269b1280423c85351964a072 (diff)
Use ExecutionEngine::currentContext() where applicable
Change-Id: I7e83819d4551ffc9125e5bf376ae6bc620a11d2b Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime.cpp')
-rw-r--r--src/qml/jsruntime/qv4runtime.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4runtime.cpp b/src/qml/jsruntime/qv4runtime.cpp
index 354ff8e41b..657326020e 100644
--- a/src/qml/jsruntime/qv4runtime.cpp
+++ b/src/qml/jsruntime/qv4runtime.cpp
@@ -1767,8 +1767,8 @@ void Runtime::CloneBlockContext::call(ExecutionEngine *engine)
void Runtime::PushScriptContext::call(ExecutionEngine *engine, int index)
{
Q_ASSERT(engine->currentStackFrame->isJSTypesFrame());
- Q_ASSERT(engine->currentStackFrame->context()->d()->type == Heap::ExecutionContext::Type_GlobalContext ||
- engine->currentStackFrame->context()->d()->type == Heap::ExecutionContext::Type_QmlContext);
+ Q_ASSERT(engine->currentContext()->d()->type == Heap::ExecutionContext::Type_GlobalContext ||
+ engine->currentContext()->d()->type == Heap::ExecutionContext::Type_QmlContext);
ReturnedValue c = ExecutionContext::newBlockContext(engine->currentStackFrame, index)->asReturnedValue();
engine->setScriptContext(c);
static_cast<JSTypesStackFrame *>(engine->currentStackFrame)->jsFrame->context = c;