mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
Fix set wasi args order (#2485)
set_wasi_args should be called before module instantiation.
This commit is contained in:
parent
f0632edc37
commit
59bedecc5e
|
@ -131,12 +131,12 @@ class Instance:
|
|||
):
|
||||
# Store module ensures GC does not remove it
|
||||
self.module = module
|
||||
if dir_list:
|
||||
self._set_wasi_args(module, dir_list)
|
||||
if preinitialized_module_inst is None:
|
||||
self.module_inst = self._create_module_inst(module, stack_size, heap_size)
|
||||
else:
|
||||
self.module_inst = preinitialized_module_inst
|
||||
if dir_list:
|
||||
self._set_wasi_args(module, dir_list)
|
||||
|
||||
def __del__(self):
|
||||
print("deleting Instance")
|
||||
|
|
Loading…
Reference in New Issue
Block a user