getImportObject
Return an import object that can be passed to WebAssembly.instantiate()
if no other WASM imports are needed beyond those provided by WASI.
If version unstable
was passed into the constructor it will return:
{ wasi_unstable: wasi.wasiImport }
Content copied to clipboard
If version preview1
was passed into the constructor or no version was specified it will return:
{ wasi_snapshot_preview1: wasi.wasiImport }
Content copied to clipboard
Since
v19.8.0