Patch 8.2.4574
Problem:    Vim9: test for profiling fails.
Solution:   Mark function for profiling earlier to avoid E1271.
Files:      src/testdir/test_vim9_script.vim


*** ../vim-8.2.4573/src/testdir/test_vim9_script.vim    2022-03-14 
10:50:16.382185007 +0000
--- src/testdir/test_vim9_script.vim    2022-03-15 16:12:32.167658264 +0000
***************
*** 3944,3956 ****
        def Profile()
          profile start Xprofile.log
          profile func ProfiledWithLambda
!         ProfiledWithLambda()
! 
          profile func ProfiledNested
          ProfiledNested()
  
!         # 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()
  
--- 3944,3956 ----
        def Profile()
          profile start Xprofile.log
          profile func 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.
          profile func *
          g:ProfiledNestedProfiled()
  
*** ../vim-8.2.4573/src/version.c       2022-03-15 15:57:00.426428445 +0000
--- src/version.c       2022-03-15 16:13:31.135515370 +0000
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     4574,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
270. You are subscribed to a mailing list for every piece of software
     you use.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220315161720.0E2371C42FC%40moolenaar.net.

Raspunde prin e-mail lui