diff --git a/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java b/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java index fbd897c..30ed2cc 100644 --- a/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java +++ b/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java @@ -126,8 +126,8 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod writeSection( SectionType.Function, functions.values() ); writeTableSection(); writeMemorySection(); - writeSection( SectionType.Global, globals.values() ); writeEventSection(); + writeSection( SectionType.Global, globals.values() ); writeSection( SectionType.Export, exports ); writeElementSection(); writeCodeSection();