+ added 'shared' flag to TJSWebAssemblyMemoryDescriptor

This commit is contained in:
Nikolay Nikolov 2022-07-09 01:38:43 +03:00
parent 06dc16b22e
commit 6512160636
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -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';