mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.2710: Vim9: not all tests cover script and :def function
Problem: Vim9: not all tests cover script and :def function. Solution: Run tests in both if possible. Fix differences.
This commit is contained in:
@@ -3962,9 +3962,16 @@ on_fatal_error:
|
||||
|
||||
done:
|
||||
// function finished, get result from the stack.
|
||||
tv = STACK_TV_BOT(-1);
|
||||
*rettv = *tv;
|
||||
tv->v_type = VAR_UNKNOWN;
|
||||
if (ufunc->uf_ret_type == &t_void)
|
||||
{
|
||||
rettv->v_type = VAR_VOID;
|
||||
}
|
||||
else
|
||||
{
|
||||
tv = STACK_TV_BOT(-1);
|
||||
*rettv = *tv;
|
||||
tv->v_type = VAR_UNKNOWN;
|
||||
}
|
||||
ret = OK;
|
||||
|
||||
failed:
|
||||
|
Reference in New Issue
Block a user