revert event section order until v8 in node it support

This commit is contained in:
Volker Berlin 2020-04-24 20:55:52 +02:00
parent af50221b44
commit 374ab7121b

View File

@ -125,8 +125,8 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod
writeSection( SectionType.Function, functions.values() );
writeTableSection();
writeMemorySection();
writeEventSection();
writeSection( SectionType.Global, globals.values() );
writeEventSection(); // TODO event section before global section
writeSection( SectionType.Export, exports );
writeStartSection();
writeElementSection();