support WASM_FUNCREF return type in argv_to_results (#3936)

This commit is contained in:
James Ring 2024-11-27 19:50:16 -08:00 committed by GitHub
parent 8698d22e67
commit e09613c722
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3330,6 +3330,7 @@ argv_to_results(const uint32 *argv, const wasm_valtype_vec_t *result_defs,
break;
#if WASM_ENABLE_GC == 0 && WASM_ENABLE_REF_TYPES != 0
case WASM_EXTERNREF:
case WASM_FUNCREF:
result->of.ref = (struct wasm_ref_t *)(*(uintptr_t *)argv);
argv += sizeof(uintptr_t) / sizeof(uint32);
break;