我已经用javasctipt写了一个使用WebAssembly.Memory的代码,我想在web worker中使用这个内存。这是我的代码: var memory = new WebAssembly.Memory({initial:10});counter.postMessage(memory);//other statements o
我在js和wasm之间共享一块内存,使用的是'imported‘内存。在我的汇编脚本代码中,我甚至没有访问预分配的内存,仍然得到了一个RuntimeError: memory access out of bounds。我想知道为什么。height;const nPages = Math.ceil(arraySize / pageSize); i