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

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

@@ -5663,7 +5663,7 @@ f_term_dumpload(typval_T *argvars, typval_T *rettv)
{
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;
term_load_dump(argvars, rettv, FALSE);