The writer must be prepared before the types are written.

This commit is contained in:
Volker Berlin 2022-03-19 22:08:43 +01:00
parent 8ce6c1d919
commit bf0b43fd1a

View File

@ -371,10 +371,10 @@ public class ModuleGenerator {
types.scanTypeHierarchy();
JWebAssembly.LOGGER.fine( "scan finish" );
writer.prepareFinish();
types.prepareFinish( writer );
functions.prepareFinish();
strings.prepareFinish( writer );
writer.prepareFinish();
}
/**