mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-20 10:49:05 +02:00
* Reget memory when memory is allocated
This commit is contained in:
parent
017738ed33
commit
154565601d
@ -887,7 +887,8 @@ begin
|
|||||||
|
|
||||||
// allocate wasm memory
|
// allocate wasm memory
|
||||||
Result:=WasiExports.AllocMem(Len);
|
Result:=WasiExports.AllocMem(Len);
|
||||||
|
// Need to reget the memory buffer, since it can have changed by the allocmem.
|
||||||
|
view:=getModuleMemoryDataView();
|
||||||
// write
|
// write
|
||||||
p:=Result;
|
p:=Result;
|
||||||
View.setUint8(p,Args.Length);
|
View.setUint8(p,Args.Length);
|
||||||
|
Loading…
Reference in New Issue
Block a user