Pārlūkot izejas kodu

+ write the wasm binary module header and version

Nikolay Nikolov 4 gadi atpakaļ
vecāks
revīzija
fd4d6b8fc3
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. 3 1
      compiler/ogwasm.pas

+ 3 - 1
compiler/ogwasm.pas

@@ -229,7 +229,9 @@ implementation
 
     function TWasmObjOutput.writeData(Data:TObjData):boolean;
       begin
-        result:=false;
+        Writer.write(WasmModuleMagic,SizeOf(WasmModuleMagic));
+        Writer.write(WasmVersion,SizeOf(WasmVersion));
+        result:=true;
       end;
 
     constructor TWasmObjOutput.create(AWriter: TObjectWriter);