diff options
Diffstat (limited to 'src/qml/compiler/qv4compileddata.cpp')
-rw-r--r-- | src/qml/compiler/qv4compileddata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/compiler/qv4compileddata.cpp b/src/qml/compiler/qv4compileddata.cpp index c39cf51a1a..c82f3d1bc8 100644 --- a/src/qml/compiler/qv4compileddata.cpp +++ b/src/qml/compiler/qv4compileddata.cpp @@ -469,8 +469,8 @@ const Value *CompilationUnit::resolveExportRecursively(QV4::String *exportName, if (auto localExport = lookupNameInExportTable(data->localExportEntryTable(), data->localExportEntryTableSize, exportName)) { ScopedString localName(scope, runtimeStrings[localExport->localName]); - uint index = m_module->scope->internalClass->find(localName->toPropertyKey()); - if (index >= UINT_MAX) + uint index = m_module->scope->internalClass->indexOfValueOrGetter(localName->toPropertyKey()); + if (index == UINT_MAX) return nullptr; if (index >= m_module->scope->locals.size) return imports[index - m_module->scope->locals.size]; |