From 94f1a07d495e61717fa76d71cc6eca95674a550d Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Wed, 12 Feb 2020 21:34:00 +0100 Subject: [PATCH] Put event section before global sectionhttps://github.com/WebAssembly/exception-handling/pull/100#event-3027557988 --- 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 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();