Browse Source

+ 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 9 months ago
parent
commit
800fb6624e
1 changed files with 2 additions and 0 deletions
  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 }