diff src/vim9.h @ 23362:f181fe2150ab v8.2.2224

patch 8.2.2224: Vim9: crash if script reloaded with different variable type Commit: https://github.com/vim/vim/commit/07a65d26e7d76ad22d6ef23b50c0faa25e435e02 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Dec 26 20:09:15 2020 +0100 patch 8.2.2224: Vim9: crash if script reloaded with different variable type Problem: Vim9: crash if script reloaded with different variable type. Solution: Check the type when accessing the variable.
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Dec 2020 20:15:04 +0100
parents e8eb4fd44902
children 09868c86a97f
line wrap: on
line diff
--- a/src/vim9.h
+++ b/src/vim9.h
@@ -247,6 +247,7 @@ typedef struct {
     int		sref_sid;	// script ID
     int		sref_idx;	// index in sn_var_vals
     int		sref_seq;	// sn_script_seq when compiled
+    type_T	*sref_type;	// type of the variable when compiled
 } scriptref_T;
 
 typedef struct {