comparison 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
comparison
equal deleted inserted replaced
24658:2a206965fff4 24659:982516c8d692
1012 normal gg 1012 normal gg
1013 def Fail() 1013 def Fail()
1014 try 1014 try
1015 searchpairpos('(', '', ')', 'nW', '[0]->map("")') 1015 searchpairpos('(', '', ')', 'nW', '[0]->map("")')
1016 catch 1016 catch
1017 g:caught = 'yes'
1017 endtry 1018 endtry
1018 enddef 1019 enddef
1019 Fail() 1020 Fail()
1020 END 1021 END
1021 CheckScriptFailure(lines, 'E15:') 1022 CheckScriptSuccess(lines)
1022 1023 assert_equal('yes', g:caught)
1024
1025 unlet g:caught
1023 bwipe! 1026 bwipe!
1024 enddef 1027 enddef
1025 1028
1026 def Test_set_get_bufline() 1029 def Test_set_get_bufline()
1027 # similar to Test_setbufline_getbufline() 1030 # similar to Test_setbufline_getbufline()