0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.1373: Vim9: no error for assigning to non-existing script var

Problem:    Vim9: no error for assigning to non-existing script var.
Solution:   Check that in Vim9 script the variable was defined. (closes #6630)
This commit is contained in:
Bram Moolenaar
2020-08-05 14:34:14 +02:00
parent fdac71c507
commit f9b2b49663
5 changed files with 68 additions and 36 deletions

View File

@@ -1594,7 +1594,9 @@ typedef struct
int uf_tml_execed; // line being timed was executed
# endif
sctx_T uf_script_ctx; // SCTX where function was defined,
// used for s: variables
// used for s: variables; sc_version changed
// for :function
int uf_script_ctx_version; // original sc_version of SCTX
int uf_refcount; // reference count, see func_name_refcount()
funccall_T *uf_scoped; // l: local variables for closure