Re:You can now run WebAssembly on Cloudflare Workers
by Arnavion on Monday October 01, 2018 @03:36PM
(#18116046)
https://github.com/cloudflare/cloudflare-workers-wasm-demo/b...
// init() is called from JS to allocate space for the image file.
byte* init(size_t image_size) {
// Reset the heap to empty. (See malloc() implementation in bootstrap.h.)
heap = &__heap_base;
Shouldn't it be:
or something to that effect?I haven't read the rest of the code, nor know how WebAssembly works, but I can't make sense of that snippet.