Skip to content

Commit

Permalink
Add node api wasi flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rajsite committed Aug 3, 2024
1 parent 162dd90 commit fc66b07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test-it/wasi.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
args: argv.slice(1),
preopens: {
'/': path.join(__dirname, 'ViaTests')
}
},
version: 'preview1'
});
const importObject = {wasi_snapshot_preview1: wasi.wasiImport};
const instance = await WebAssembly.instantiate(wasm, importObject);
Expand Down

0 comments on commit fc66b07

Please sign in to comment.