diff src/testdir/test_vim9_builtin.vim @ 24659:982516c8d692 v8.2.2868

patch 8.2.2868: Vim9: when executing compiled expression trylevel is changed Commit: https://github.com/vim/vim/commit/cbe178e3dc4ad45d9b2ed5e713e7c4cc88bf8b8b Author: Bram Moolenaar <Bram@vim.org> Date: Tue May 18 17:49:59 2021 +0200 patch 8.2.2868: Vim9: when executing compiled expression trylevel is changed Problem: Vim9: When executing a compiled expression the trylevel at start is changed but not restored. (closes https://github.com/vim/vim/issues/8214) Solution: Restore the trylevel at start.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 May 2021 18:00:04 +0200
parents 4a4f64cdc798
children 13efbfc53054
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim
+++ b/src/testdir/test_vim9_builtin.vim
@@ -1014,12 +1014,15 @@ def Test_searchpair()
         try
           searchpairpos('(', '', ')', 'nW', '[0]->map("")')
         catch
+          g:caught = 'yes'
         endtry
       enddef
       Fail()
   END
-  CheckScriptFailure(lines, 'E15:')
+  CheckScriptSuccess(lines)
+  assert_equal('yes', g:caught)
 
+  unlet g:caught
   bwipe!
 enddef