0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.1009: Vim9: some failures not checked for

Problem:    Vim9: some failures not checked for.
Solution:   Add test cases.  Remove unused code.
This commit is contained in:
Bram Moolenaar
2020-06-18 22:43:27 +02:00
parent 0779fab297
commit c5b1c20b6b
3 changed files with 24 additions and 5 deletions

View File

@@ -2119,12 +2119,8 @@ call_def_function(
list_T *list;
int count = iptr->isn_arg.number;
// type will have been checked to be a list
tv = STACK_TV_BOT(-1);
if (tv->v_type != VAR_LIST)
{
emsg(_(e_listreq));
goto failed;
}
list = tv->vval.v_list;
// no error for short list, expect it to be checked earlier