aboutsummaryrefslogtreecommitdiff
path: root/src/routines/call_import.c
Commit message (Collapse)AuthorAgeFilesLines
* call_import.c: Fix prev_retXavier Del Campo Romero2025-11-121-2/+8
| | | | | | | So far, this variable was only being assigned by unwind.c, which is called only for WebAssembly functions. However, it is still mandatory to report the last returned value from imported functions, too, as prev_ret is relied upon by operators such as `drop`.
* call_import.c: Always set ci->pcXavier Del Campo Romero2025-11-091-2/+2
| | | | | | Otherwise, imports without parameters would jump to `call` directly without assigning ci->pc first, so that nwp_interp_resume would read incorrectly from offset 0.
* First commitXavier Del Campo Romero2025-11-061-0/+477