aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compat/removed_api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/compat/removed_api.cpp')
-rw-r--r--src/qml/compat/removed_api.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/qml/compat/removed_api.cpp b/src/qml/compat/removed_api.cpp
index bf58c2be99..3ee11717cd 100644
--- a/src/qml/compat/removed_api.cpp
+++ b/src/qml/compat/removed_api.cpp
@@ -98,4 +98,22 @@ void QQmlPrivate::AOTCompiledContext::initCallQmlContextPropertyLookup(uint inde
engine->handle()->amendException();
}
+bool QQmlPrivate::AOTCompiledContext::loadGlobalLookup(uint index, void *target, QMetaType type) const
+{
+ QV4::Lookup *lookup = compilationUnit->runtimeLookups + index;
+ if (!QV4::ExecutionEngine::metaTypeFromJS(
+ lookup->globalGetter(engine->handle()), type, target)) {
+ engine->handle()->throwTypeError();
+ return false;
+ }
+ return true;
+}
+
+void QQmlPrivate::AOTCompiledContext::initLoadGlobalLookup(uint index) const
+{
+ Q_UNUSED(index);
+ Q_ASSERT(engine->hasError());
+ engine->handle()->amendException();
+}
+
#endif