0
0
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:
Bram Moolenaar
2021-04-04 20:49:50 +02:00
parent 26af8e54ff
commit 90193e6140
6 changed files with 761 additions and 742 deletions

View File

@@ -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: