0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.1.0391: Vim9: could improve testing

Problem:  Vim9: could improve testing
          (Ernie Rael)
Solution: Support defcompile for test_override() to
          improve testing (Yegappan Lakshmanan)

fixes: #14553
closes: #14712

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yegappan Lakshmanan
2024-05-03 18:24:07 +02:00
committed by Christian Brabandt
parent c8330b8fff
commit 5715a72628
6 changed files with 26 additions and 1 deletions

View File

@@ -5452,6 +5452,10 @@ define_function(
// :func does not use Vim9 script syntax, even in a Vim9 script file
fp->uf_script_ctx.sc_version = SCRIPT_VERSION_MAX;
// If test_override('defcompile' 1) is used, then compile the function now
if (eap->cmdidx == CMD_def && override_defcompile)
defcompile_function(fp, NULL);
goto ret_free;
erret: