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()
|
||||
profile start Xprofile.log
|
||||
profile func ProfiledWithLambda
|
||||
ProfiledWithLambda()
|
||||
|
||||
# mark ProfiledNested for profiling to avoid E1271
|
||||
profile func ProfiledNested
|
||||
ProfiledWithLambda()
|
||||
ProfiledNested()
|
||||
|
||||
# Also profile the nested function. Use a different function, although the
|
||||
# contents is the same, to make sure it was not already compiled.
|
||||
# Also profile the nested function. Use a different function, although
|
||||
# the contents is the same, to make sure it was not already compiled.
|
||||
profile func *
|
||||
g:ProfiledNestedProfiled()
|
||||
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4574,
|
||||
/**/
|
||||
4573,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user