Browse Source

+ added 'shared' flag to TJSWebAssemblyMemoryDescriptor

Nikolay Nikolov 3 years ago
parent
commit
6512160636
2 changed files with 2 additions and 0 deletions
  1. 1 0
      packages/rtl/webassembly.pas
  2. 1 0
      packages/wasi/wasienv.pas

+ 1 - 0
packages/rtl/webassembly.pas

@@ -14,6 +14,7 @@ Type
   TJSWebAssemblyMemoryDescriptor = record
     initial,
     maximum : integer;
+    shared : Boolean;
   end;
 
   TJSWebAssemblyMemory = class external name 'WebAssembly.Memory' (TJSObject)

+ 1 - 0
packages/wasi/wasienv.pas

@@ -582,6 +582,7 @@ begin
   Fenv.OnGetConsoleInputString:=@DoStdRead;
   FMemoryDescriptor.initial:=256;
   FMemoryDescriptor.maximum:=256;
+  FMemoryDescriptor.shared:=False;
   FTableDescriptor.initial:=0;
   FTableDescriptor.maximum:=0;
   FTableDescriptor.element:='anyfunc';