根据MDN文档的介绍https://developer.mozilla.org/zh-CN/docs/WebAssembly/Guides/C_to_Wasm,打包成wasm文件后,在小程序中使用
WXWebAssembly.instantiate('/static/hellonew.wasm')
报错提示
Uncaught (in promise) CompileError: WebAssembly.instantiate(): Compiling functio #11 failed: expected table index 0, found 0 @+1077
我尝试了在html中使用是可以正常运行

小程序中的 wasm 需要额外写胶水代码特殊处理。