Problem: vimscript test fails where using {expr} syntax.
Solution: Only return FCERR_FAILED in call_user_func() for Vim9 script.
clear_tv(rettv);
rettv->v_type = VAR_NUMBER;
rettv->vval.v_number = -1;
- retval = FCERR_FAILED;
+
+ // In corner cases returning a "failed" value is not backwards
+ // compatible. Only do this for Vim9 script.
+ if (in_vim9script())
+ retval = FCERR_FAILED;
}
#ifdef FEAT_PROFILE
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1321,
/**/
1320,
/**/