收藏
回答

iOS真机使用WebAssembly.instantiate微信崩溃,console也没有信息输出?

const wasmModulePath = '/wasm/AudioMusic_bg.wasm' 

async function instantiateArrayBuffer(binaryFile, imports) {

  try {

    const wasmModule = await WXWebAssembly.instantiate(wasmModulePath, imports)

    return wasmModule

  } catch(reason) {

    console.log('Failed to load wasm:' + reason)

    return undefined

  }

}


android真机和模拟器没有问题。iOS执行到WXWebAssembly.instantiate时崩溃,且console没有信息输出。


回答关注问题邀请回答
收藏

1 个回答

  • 智能回答 智能回答 该问答由AI生成
    02-04
    有用
登录 后发表内容