diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-08-15 13:18:32 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-08-15 18:55:53 +0000 |
commit | 0e45db9a04c339ee7aa0e692e5ad3827db388628 (patch) | |
tree | bfe5f6c20051da567785932547a1b405180611d9 /src/qml/compiler/qv4compileddata_p.h | |
parent | 7f59171d00d185828b32d5d3e1cc9bcd34e7b003 (diff) |
Fix order of own property names of module namespace objects
They must be sorted, no duplicates and only one default entry at most.
Change-Id: Ia9c0e54a761ce7cbfebb837330bf3769d505eb3b
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compileddata_p.h')
-rw-r--r-- | src/qml/compiler/qv4compileddata_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h index 7581fe3fff..f0043cc6af 100644 --- a/src/qml/compiler/qv4compileddata_p.h +++ b/src/qml/compiler/qv4compileddata_p.h @@ -1169,6 +1169,7 @@ public: QStringList moduleRequests() const; Heap::Module *instantiate(ExecutionEngine *engine); const Value *resolveExport(QV4::String *exportName); + QStringList exportedNames() const; void evaluate(); QV4::Function *linkToEngine(QV4::ExecutionEngine *engine); @@ -1202,6 +1203,7 @@ private: const Value *resolveExportRecursively(QV4::String *exportName, QVector<ResolveSetEntry> *resolveSet); const ExportEntry *lookupNameInExportTable(const ExportEntry *firstExportEntry, int tableSize, QV4::String *name) const; + void getExportedNamesRecursively(QStringList *names, QVector<const CompilationUnit *> *exportNameSet, bool includeDefaultExport = true) const; QString m_fileName; // initialized from data->sourceFileIndex QString m_finalUrlString; // initialized from data->finalUrlIndex |