diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-15 15:57:04 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-15 15:57:04 +0000 |
commit | 96923b7a14839e7505b194ab76e1f15bb88fa7ed (patch) | |
tree | 81ea9b6fd45875d67c735a49f08b9c26df6fe01d /src/errors.h | |
parent | 1a572e9b3b497e0412b4001cd9c6859db0c35412 (diff) |
patch 8.2.4573: a nested function is compiled for debugging without contextv8.2.4573
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)
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h index b021f82047..b8e9419794 100644 --- a/src/errors.h +++ b/src/errors.h @@ -3249,3 +3249,7 @@ EXTERN char e_cannot_create_vim9_script_variable_in_function_str[] #endif EXTERN char e_cannot_use_s_backslash_in_vim9_script[] INIT(= N_("E1270: Cannot use :s\\/sub/ in Vim9 script")); +#ifdef FEAT_EVAL +EXTERN char e_compiling_closure_without_context_str[] + INIT(= N_("E1271: compiling closure without context: %s")); +#endif |