diff src/vim9execute.c @ 28097:632a84e2ce92 v8.2.4573

patch 8.2.4573: a nested function is compiled for debugging without context Commit: https://github.com/vim/vim/commit/96923b7a14839e7505b194ab76e1f15bb88fa7ed Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 15 15:57:04 2022 +0000 patch 8.2.4573: a nested function is compiled for debugging without context Problem: A nested function (closure) is compiled for debugging without context. Solution: Check if a nested function is marked for debugging before compiling it. Give an error when trying to compile a closure without its context. (closes #9951)
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Mar 2022 17:00:04 +0100
parents 73f4d1e479f2
children 3bc0a639dfb0
line wrap: on
line diff
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -152,7 +152,7 @@ exe_newlist(int count, ectx_T *ectx)
  * If debug_tick changed check if "ufunc" has a breakpoint and update
  * "uf_has_breakpoint".
  */
-    static void
+    void
 update_has_breakpoint(ufunc_T *ufunc)
 {
     if (ufunc->uf_debug_tick != debug_tick)