mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.4574: Vim9: test for profiling fails
Problem: Vim9: test for profiling fails. Solution: Mark function for profiling earlier to avoid E1271.
This commit is contained in:
@@ -3944,13 +3944,13 @@ def Test_profile_with_lambda()
|
|||||||
def Profile()
|
def Profile()
|
||||||
profile start Xprofile.log
|
profile start Xprofile.log
|
||||||
profile func ProfiledWithLambda
|
profile func ProfiledWithLambda
|
||||||
ProfiledWithLambda()
|
# mark ProfiledNested for profiling to avoid E1271
|
||||||
|
|
||||||
profile func ProfiledNested
|
profile func ProfiledNested
|
||||||
|
ProfiledWithLambda()
|
||||||
ProfiledNested()
|
ProfiledNested()
|
||||||
|
|
||||||
# Also profile the nested function. Use a different function, although the
|
# Also profile the nested function. Use a different function, although
|
||||||
# contents is the same, to make sure it was not already compiled.
|
# the contents is the same, to make sure it was not already compiled.
|
||||||
profile func *
|
profile func *
|
||||||
g:ProfiledNestedProfiled()
|
g:ProfiledNestedProfiled()
|
||||||
|
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4574,
|
||||||
/**/
|
/**/
|
||||||
4573,
|
4573,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user