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没有信息输出。