Wasm & Host program console output:

Both the webassembly program and the host program in JS track the growing of webassembly linear memory. They both log a line when the memory array is resized.

Created using   pas2js.

Pas2JS Sources:   Pas2JS Program

Webassembly Sources:   FPC Program