File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ class ExportNamer {
5656/// The `exportDynamic___` methods add relevant associations to the above
5757/// mappings and add the given exportable to the Wasm exports of the specified
5858/// module under the computed export name.
59+ ///
60+ /// For deferred imports, the [export] method is sufficient.
5961class Exporter {
6062 final ExportNamer _namer;
6163 final MainModuleMetadata _mainModuleMetadata;
Original file line number Diff line number Diff line change @@ -2660,7 +2660,8 @@ abstract class _WasmImporter<T extends w.Exportable> {
26602660 if (key.enclosingModule == module) return key;
26612661
26622662 final innerMap = _map.putIfAbsent (key, () {
2663- key.enclosingModule.exports.export ('$_exportPrefix ${_map .length }' , key);
2663+ _translator.exporter
2664+ .export (key.enclosingModule, '$_exportPrefix ${_map .length }' , key);
26642665 return {};
26652666 });
26662667 return innerMap.putIfAbsent (module, () {
You can’t perform that action at this time.
0 commit comments