现在有个功能,需要通过前端调用C++算法,但算法是通过emscripten分开编译的,也就是说会生成多个wasm文件和胶水代码。
而在前端导入多份胶水代码时,会报一个错误
emcc.js:628 Aborted(`Module.arguments` has been replaced by `arguments_` (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name))
导致无法加载从第二个起的wasm文件。
请问这种情况该如何处理呢?
使用service worker(Web Worker)启动另外一个wasm