Changeset 267186 in webkit for trunk/Source/JavaScriptCore/parser/NodesAnalyzeModule.cpp
- Timestamp:
- Sep 17, 2020, 3:30:19 AM (5 years ago)
- File:
- 1 edited
Legend:
- Unmodified
- Added
- Removed
trunk/Source/JavaScriptCore/parser/NodesAnalyzeModule.cpp
r261895 r267186 86 86 // In this case, no local variable names are imported into the current module. 87 87 // "v" indirectly points the binding in "mod". 88 analyzer.moduleRecord()->addExportEntry(JSModuleRecord::ExportEntry::createIndirect(specifier->exportedName(), specifier->localName(), m_moduleName->moduleName())); 88 // 89 // export * as v from "mod" 90 // 91 // If it is namespace export, we should use createNamespace. 92 if (specifier->localName() == analyzer.vm().propertyNames->starNamespacePrivateName) 93 analyzer.moduleRecord()->addExportEntry(JSModuleRecord::ExportEntry::createNamespace(specifier->exportedName(), m_moduleName->moduleName())); 94 else 95 analyzer.moduleRecord()->addExportEntry(JSModuleRecord::ExportEntry::createIndirect(specifier->exportedName(), specifier->localName(), m_moduleName->moduleName())); 89 96 } 90 97 }
Note: See TracChangeset for help on using the changeset viewer.