浏览代码

+ 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 10 月之前
父节点
当前提交
800fb6624e
共有 1 个文件被更改,包括 2 次插入0 次删除
  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 }