我正在尝试使用Go编译为WebAssembly在我的本地MongoDB实例中存储一些数据。问题是,我甚至无法连接到它。mondog实例不会以任何方式响应来自wasm模块的连接。仅当从wasm模块连接时才会出现此问题。同样的代码在以普通方式编译时工作得很好,也可以与mongo shell连接。已运行的mongod实例没有密码保护。/wasm_exec.js"></script> const go = new
at wasm_invoke_iiiiii (https://localhost:5001/_framework/wasm/dotnet.wasm:wasm-function[3160]:0x9b33d_internal.renderBatch (https://localhost:5001/_framework/blazor.webassembly.js:1:34784)
at _mono_wasm
我正在构建一个Chrome扩展,我选择使用一些WebAssembly功能。我使用wasm-pack来构建源代码,因为它提供了一个--target web,它降低了插入Wasm函数的复杂性。}在使用wasm构建并导入生成的pkg目录到我的JS文件夹之后。我通过manifest.json文件将pkg目录的内容作为web_resource提供给项目。' that initializes the WebAssem