diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-07-23 20:37:56 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-23 20:37:56 +0200 |
commit | 0ad871dc4dfe1026e14931a55c225616b63f4c5b (patch) | |
tree | a83e1cf4e231864e182c4b9ce70c37460d2200dd /src/blob.c | |
parent | 1b862c466ba4242857eec581f67982d265005ef4 (diff) | |
download | vim-git-0ad871dc4dfe1026e14931a55c225616b63f4c5b.tar.gz |
patch 8.2.3206: Vim9: argument types are not checked at compile timev8.2.3206
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611)
Diffstat (limited to 'src/blob.c')
-rw-r--r-- | src/blob.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/blob.c b/src/blob.c index 6855935ec..57fe58b05 100644 --- a/src/blob.c +++ b/src/blob.c @@ -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) { |