收藏
回答

WXWebAssembly.instantiate传文件路径不支持,ArrayBuffer也不支持?

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 个回答

  • 寸许月光
    寸许月光
    2021-04-09

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

    2021-04-09
    有用 1
    回复 1
    • 周锋
      周锋
      2021-04-09
      可以了~
      2021-04-09
      回复
登录 后发表内容
问题标签