Skip to content

Commit 9c91272

Browse files
committed
fix(runtime-c-api) Use get_wasi_version in non-strict mode.
1 parent ac599e3 commit 9c91272

File tree

1 file changed

+1
-1
lines changed
  • lib/runtime-c-api/src/import

1 file changed

+1
-1
lines changed

lib/runtime-c-api/src/import/wasi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub unsafe extern "C" fn wasmer_wasi_get_version(module: *const wasmer_module_t)
117117

118118
let module = &*(module as *const Module);
119119

120-
match wasi::get_wasi_version(module) {
120+
match wasi::get_wasi_version(module, false) {
121121
Some(version) => match version {
122122
wasi::WasiVersion::Snapshot0 => Version::Snapshot0,
123123
wasi::WasiVersion::Snapshot1 => Version::Snapshot1,

0 commit comments

Comments
 (0)