Skip to content

Commit 2d773d6

Browse files
authored
Fix event section order (#2202)
The event section should be between the global section and the export section, if present. Here tests are missing, but we don't have a very good way of testing validity of binary anyway. We are planning to add d8 tests in a separate PR.
1 parent f154364 commit 2d773d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wasm/wasm-binary.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ void WasmBinaryWriter::write() {
5252
writeFunctionTableDeclaration();
5353
writeMemory();
5454
writeGlobals();
55+
writeEvents();
5556
writeExports();
5657
writeStart();
5758
writeTableElements();
5859
writeDataCount();
5960
writeFunctions();
6061
writeDataSegments();
61-
writeEvents();
6262
if (debugInfo) {
6363
writeNames();
6464
}

0 commit comments

Comments
 (0)