webassembly 常见错误整理

错误一 memory access out of bounds

RuntimeError: memory access out of bounds

解决方案
打包的时候添加 --importMemory
允许使用导入的内存

asc assembly/index.ts -b build/optimized.wasm -t build/optimized.wat --sourceMap --validate --optimize  --runtime none --importMemory
发布了77 篇原创文章 · 获赞 5 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/uk_51/article/details/103691014