WXWebAssembly.instantiate传文件路径不支持,ArrayBuffer也不支持?
发布于 4 年前 作者 juanguo 1517 次浏览 来自 问答

Error: WebAssembly.instantiate: not support wxfile: or http: path

WXWebAssembly这个方法在华为mate20 微信版本8.0.2,libVersion 2.16.0上报不支持wxfile path,传入arraybuffer也报错

实例化的时候,由于没有compile对象,所以想到了直接使用WXWebAssembly.instantiate来实例化

1 回复

WXWebAssembly.instantiate第一个参数采用绝对路径,/pages/index/hello.wasm就可以了

回到顶部