Mercurial > vim
changeset 28099:2cee7204d844 v8.2.4574
patch 8.2.4574: Vim9: test for profiling fails
Commit: https://github.com/vim/vim/commit/48f69cdfa401999ac5ff8cef6d8dcabe3f93e284
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Mar 15 16:16:47 2022 +0000
patch 8.2.4574: Vim9: test for profiling fails
Problem: Vim9: test for profiling fails.
Solution: Mark function for profiling earlier to avoid E1271.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 15 Mar 2022 17:30:03 +0100 |
parents | 298565065982 |
children | 0b5711bd05a9 |
files | src/testdir/test_vim9_script.vim src/version.c |
diffstat | 2 files changed, 6 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_vim9_script.vim +++ b/src/testdir/test_vim9_script.vim @@ -3944,13 +3944,13 @@ def Test_profile_with_lambda() def Profile() profile start Xprofile.log profile func ProfiledWithLambda + # mark ProfiledNested for profiling to avoid E1271 + profile func ProfiledNested 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. + # 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()