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:
@@ -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
|
||||
|
Reference in New Issue
Block a user