1
0
forked from aniani/vim

patch 8.2.3415: Vim9: not all function argument types are properly checked

Problem:    Vim9: Not all function argument types are properly checked.
Solution:   Add and improve argument type checks. (Yegappan Lakshmanan,
            closes #8839)
This commit is contained in:
Yegappan Lakshmanan
2021-09-08 14:57:42 +02:00
committed by Bram Moolenaar
parent 80c88eac5a
commit fc3b775055
7 changed files with 115 additions and 13 deletions

View File

@@ -1309,7 +1309,7 @@ channel_open_func(typval_T *argvars)
if (in_vim9script()
&& (check_for_string_arg(argvars, 0) == FAIL
|| check_for_dict_arg(argvars, 1) == FAIL))
|| check_for_opt_dict_arg(argvars, 1) == FAIL))
return NULL;
address = tv_get_string(&argvars[0]);