Mercurial > vim
comparison src/evalfunc.c @ 26731:7f4cc4e58f75 v8.2.3894
patch 8.2.3894: Vim9: no proper type check for first argument of call()
Commit: https://github.com/vim/vim/commit/223d0a6bc8dc68039ceb6660de9576fafe178d73
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 25 19:29:21 2021 +0000
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 25 Dec 2021 20:30:03 +0100 |
parents | 9c9b8d95b05f |
children | 3aa38eaa5a11 |
comparison
equal
deleted
inserted
replaced
26730:fc326a1245cf | 26731:7f4cc4e58f75 |
---|---|
2856 char_u *func; | 2856 char_u *func; |
2857 partial_T *partial = NULL; | 2857 partial_T *partial = NULL; |
2858 dict_T *selfdict = NULL; | 2858 dict_T *selfdict = NULL; |
2859 | 2859 |
2860 if (in_vim9script() | 2860 if (in_vim9script() |
2861 && (check_for_list_arg(argvars, 1) == FAIL | 2861 && (check_for_string_or_func_arg(argvars, 0) == FAIL |
2862 || check_for_list_arg(argvars, 1) == FAIL | |
2862 || check_for_opt_dict_arg(argvars, 2) == FAIL)) | 2863 || check_for_opt_dict_arg(argvars, 2) == FAIL)) |
2863 return; | 2864 return; |
2864 | 2865 |
2865 if (argvars[1].v_type != VAR_LIST) | 2866 if (argvars[1].v_type != VAR_LIST) |
2866 { | 2867 { |