Skip to content

Commit dd53041

Browse files
committed
add WASIArguments to InstantiationArgs2
1 parent f320469 commit dd53041

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

core/iwasm/common/wasm_runtime_common.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,6 +1648,7 @@ void
16481648
wasm_runtime_instantiation_args_set_defaults(struct InstantiationArgs2 *args)
16491649
{
16501650
memset(args, 0, sizeof(*args));
1651+
wasi_args_set_defaults(&args->wasi);
16511652
}
16521653

16531654
WASMModuleInstanceCommon *

core/iwasm/common/wasm_runtime_common.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,7 @@ wasm_runtime_get_exec_env_tls(void);
614614

615615
struct InstantiationArgs2 {
616616
InstantiationArgs v1;
617+
WASIArguments wasi;
617618
};
618619

619620
void

0 commit comments

Comments
 (0)