diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-07-11 19:44:18 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-07-11 19:44:18 +0200 |
commit | c72bdd28ac5fe079825155930af8e792580139bb (patch) | |
tree | 45ad88deec77ecca9af8ed3fc5afb90653ccff8d /src/testing.c | |
parent | cc7eb2aa7a7f2e6ae41f1e7cf60965c083d8a9e9 (diff) | |
download | vim-git-c72bdd28ac5fe079825155930af8e792580139bb.tar.gz |
patch 8.2.3150: Vim9: argument types are not checked at compile timev8.2.3150
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8545)
Diffstat (limited to 'src/testing.c')
-rw-r--r-- | src/testing.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testing.c b/src/testing.c index c2389bdee..80596d44b 100644 --- a/src/testing.c +++ b/src/testing.c @@ -824,6 +824,9 @@ f_assert_report(typval_T *argvars, typval_T *rettv) { garray_T ga; + if (in_vim9script() && check_for_string_arg(argvars, 0) == FAIL) + return; + prepare_assert_error(&ga); ga_concat(&ga, tv_get_string(&argvars[0])); assert_error(&ga); |