Р(
em++ test.cpp -s WASM=1 -o test.wasm
.cpp
int main() {
return 43;
}
WebAssembly.instantiateStreaming(fetch('../public/test5.wasm'), {}).then(obj => console.log('obj', obj));
Получаю ошибку:
TypeError: WebAssembly.instantiate(): Import #0 module="wasi_snapshot_preview1" error: module is not an object or function