summaryrefslogtreecommitdiffstats
path: root/src/testing.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-07-11 19:44:18 +0200
committerBram Moolenaar <Bram@vim.org>2021-07-11 19:44:18 +0200
commitc72bdd28ac5fe079825155930af8e792580139bb (patch)
tree45ad88deec77ecca9af8ed3fc5afb90653ccff8d /src/testing.c
parentcc7eb2aa7a7f2e6ae41f1e7cf60965c083d8a9e9 (diff)
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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testing.c b/src/testing.c
index c2389bdeeb..80596d44bc 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);