Browse Source

+ generate and write the Type section in the WebAssembly internal exe writer

Nikolay Nikolov 1 year ago
parent
commit
2c72b62a0e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      compiler/ogwasm.pas

+ 4 - 1
compiler/ogwasm.pas

@@ -4052,10 +4052,13 @@ implementation
       begin
         result:=false;
 
-        {TODO: implement}
+        FFuncTypes.WriteTo(FWasmSections[wsiType]);
+
+        {...}
 
         Writer.write(WasmModuleMagic,SizeOf(WasmModuleMagic));
         Writer.write(WasmVersion,SizeOf(WasmVersion));
+        WriteWasmSection(wsiType);
 
         result := true;
       end;