From 374ab7121bd7449db9f8d8371ca6022805af974c Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Fri, 24 Apr 2020 20:55:52 +0200 Subject: [PATCH] revert event section order until v8 in node it support --- src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java b/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java index a176441..34ae3ae 100644 --- a/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java +++ b/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java @@ -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();