Explorar o código

+ added a missing 'br 1' instruction in the code, generated by
GenerateCode_InitSharedMemory. This should fix the loading error in browsers,
when using multithreading.

Nikolay Nikolov hai 10 meses
pai
achega
800fb6624e
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      compiler/ogwasm.pas

+ 2 - 0
compiler/ogwasm.pas

@@ -5961,6 +5961,8 @@ implementation
         Sec.writeUInt32BE($fe000200);
         { drop }
         Sec.writeUInt8($1A);
+        { br 1 }
+        Sec.writeUInt16BE($0C01);
         { end }
         Sec.writeUInt8($0B);
         { i32.const $InitFlag }