Compare commits

...

2 Commits

Author SHA1 Message Date
Stefan Wallentowitz
8f9da51f05
Merge ed152e847a into 9773390537 2025-05-02 12:32:44 +00:00
Stefan Wallentowitz
ed152e847a
execute_func: Newline only for non-empty returns
For void functions, the return value array is empty. Don't print the newline then.
2024-07-22 18:33:15 +02:00

View File

@ -875,7 +875,9 @@ execute_func(WASMModuleInstanceCommon *module_inst, const char *name,
if (j < (uint32)(type->result_count - 1))
os_printf(",");
}
os_printf("\n");
if (type->result_count > 0) {
os_printf("\n");
}
#if WASM_ENABLE_GC != 0
for (j = 0; j < num_local_ref_pushed; j++) {