diff src/vim9compile.c @ 28063:b47698ee4a14 v8.2.4556

patch 8.2.4556: test fails without the +job or +channel feature Commit: https://github.com/vim/vim/commit/4f3321f704ec0c2a522f12a580530283ae28856f Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 13 13:12:27 2022 +0000 patch 8.2.4556: test fails without the +job or +channel feature Problem: Test fails without the +job or +channel feature. (Dominique Pell?) Solution: Adjust #ifdefs. Pass on skip flag. (closes https://github.com/vim/vim/issues/9942)
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Mar 2022 14:15:03 +0100
parents 0ed38a4e028d
children 632a84e2ce92
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -762,6 +762,7 @@ fill_exarg_from_cctx(exarg_T *eap, cctx_
 {
     eap->getline = exarg_getline;
     eap->cookie = cctx;
+    eap->skip = cctx->ctx_skip == SKIP_YES;
 }
 
 /*
@@ -855,7 +856,8 @@ compile_nested_function(exarg_T *eap, cc
 	semsg(_(e_namespace_not_supported_str), name_start);
 	return NULL;
     }
-    if (check_defined(name_start, name_end - name_start, cctx,
+    if (cctx->ctx_skip != SKIP_YES
+	    && check_defined(name_start, name_end - name_start, cctx,
 							  NULL, FALSE) == FAIL)
 	return NULL;
     if (!ASCII_ISUPPER(is_global ? name_start[2] : name_start[0]))