mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
vim-patch:8.2.0823: Vim9: script reload test is disabled
Problem: Vim9: script reload test is disabled.
Solution: Compile a function in the context of the script where it was
defined. Set execution stack for compiled function. Add a test
that an error is reported for the right file/function.
25e0f5863e
Omit stack_top_is_ufunc(): only used by Vim9 script.
This commit is contained in:
@@ -38,11 +38,13 @@ enum {
|
||||
/// A list of error messages that can be converted to an exception. "throw_msg"
|
||||
/// is only set in the first element of the list. Usually, it points to the
|
||||
/// original message stored in that element, but sometimes it points to a later
|
||||
/// message in the list. See cause_errthrow() below.
|
||||
/// message in the list. See cause_errthrow().
|
||||
typedef struct msglist msglist_T;
|
||||
struct msglist {
|
||||
char *msg; ///< original message
|
||||
char *msg; ///< original message, allocated
|
||||
char *throw_msg; ///< msg to throw: usually original one
|
||||
char *sfile; ///< value from estack_sfile(), allocated
|
||||
linenr_T slnum; ///< line number for "sfile"
|
||||
msglist_T *next; ///< next of several messages in a row
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user