1
0
forked from aniani/vim

patch 8.2.3206: Vim9: argument types are not checked at compile time

Problem:    Vim9: argument types are not checked at compile time.
Solution:   Add several more type checks. (Yegappan Lakshmanan, closes #8611)
This commit is contained in:
Yegappan Lakshmanan
2021-07-23 20:37:56 +02:00
committed by Bram Moolenaar
parent 1b862c466b
commit 0ad871dc4d
19 changed files with 461 additions and 157 deletions

View File

@@ -418,12 +418,6 @@ blob_remove(typval_T *argvars, typval_T *rettv)
long idx;
long end;
if (in_vim9script()
&& (check_for_blob_arg(argvars, 0) == FAIL
|| check_for_number_arg(argvars, 1) == FAIL
|| check_for_opt_number_arg(argvars, 2) == FAIL))
return;
idx = (long)tv_get_number_chk(&argvars[1], &error);
if (!error)
{