1
0
forked from aniani/vim

patch 8.2.3894: Vim9: no proper type check for first argument of call()

Problem:    Vim9: no proper type check for first argument of call().
Solution:   Add specific type check.
This commit is contained in:
Bram Moolenaar
2021-12-25 19:29:21 +00:00
parent 5cd647935d
commit 223d0a6bc8
6 changed files with 27 additions and 1 deletions

View File

@@ -2858,7 +2858,8 @@ f_call(typval_T *argvars, typval_T *rettv)
dict_T *selfdict = NULL;
if (in_vim9script()
&& (check_for_list_arg(argvars, 1) == FAIL
&& (check_for_string_or_func_arg(argvars, 0) == FAIL
|| check_for_list_arg(argvars, 1) == FAIL
|| check_for_opt_dict_arg(argvars, 2) == FAIL))
return;