Mercurial > vim
comparison src/testdir/test_vim9_class.vim @ 34755:1a411f737239 v9.1.0255
patch 9.1.0255: Vim9: no indication of script nr in stack trace of classes
Commit: https://github.com/vim/vim/commit/16cdfa69e07190674a8e85a48144a467472ca2f4
Author: Ernie Rael <errael@raelity.com>
Date: Tue Apr 2 19:05:39 2024 +0200
patch 9.1.0255: Vim9: no indication of script nr in stack trace of classes
Problem: Vim9: no indication of script nr in stack trace of classes
Solution: Prefix the class name with the script name in the stack trace.
(Ernie Rael)
fixes: #14376
closes: #14390
Signed-off-by: Ernie Rael <errael@raelity.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 02 Apr 2024 19:15:04 +0200 |
parents | 529709e74c11 |
children | a14868d39709 |
comparison
equal
deleted
inserted
replaced
34754:66e88c438206 | 34755:1a411f737239 |
---|---|
3739 F0() | 3739 F0() |
3740 enddef | 3740 enddef |
3741 endclass | 3741 endclass |
3742 | 3742 |
3743 def F0() | 3743 def F0() |
3744 assert_match('<SNR>\d\+_F\[1\]\.\.C\.M1\[1\]\.\.<SNR>\d\+_F0\[1\]$', expand('<stack>')) | 3744 assert_match('<SNR>\d\+_F\[1\]\.\.<SNR>\d\+_C\.M1\[1\]\.\.<SNR>\d\+_F0\[1\]$', expand('<stack>')) |
3745 enddef | 3745 enddef |
3746 | 3746 |
3747 def F() | 3747 def F() |
3748 C.new().M1() | 3748 C.new().M1() |
3749 enddef | 3749 enddef |