vim-patch:8.2.0823: Vim9: script reload test is disabled

Problem:    Vim9: script reload test is disabled.
Solution:   Compile a function in the context of the script where it was
            defined.  Set execution stack for compiled function.  Add a test
            that an error is reported for the right file/function.
25e0f5863e

Omit stack_top_is_ufunc(): only used by Vim9 script.
This commit is contained in:
zeertzjq
2022-08-13 17:52:04 +08:00
parent a10a23aae9
commit 1ca2247639
4 changed files with 24 additions and 9 deletions

View File

@@ -1015,7 +1015,7 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars, typval_T *rett
sandbox++;
}
estack_push_ufunc(ETYPE_UFUNC, fp, 1);
estack_push_ufunc(fp, 1);
if (p_verbose >= 12) {
++no_wait_return;
verbose_enter_scroll();