Patch 8.2.2517
Problem: Vim9: fix for s390 not tested on other systems.
Solution: Add a test.
Files: src/testdir/test_vim9_script.vim
*** ../vim-8.2.2516/src/testdir/test_vim9_script.vim 2021-02-14 13:17:16.992007963 +0100
--- src/testdir/test_vim9_script.vim 2021-02-14 22:40:23.634076738 +0100
***************
*** 724,729 ****
--- 724,750 ----
CheckDefFailure(['throw xxx'], 'E1001:')
enddef
+ def Try_catch_skipped()
+ var l = []
+ try
+ finally
+ endtry
+
+ if 1
+ else
+ try
+ endtry
+ endif
+ enddef
+
+ " The skipped try/endtry was updating the wrong instruction.
+ def Test_try_catch_skipped()
+ var instr = execute('disassemble Try_catch_skipped')
+ assert_match("NEWLIST size 0\n", instr)
+ enddef
+
+
+
def Test_throw_vimscript()
# only checks line continuation
var lines =<< trim END
*** ../vim-8.2.2516/src/version.c 2021-02-14 16:34:54.877413319 +0100
--- src/version.c 2021-02-14 22:40:41.238012578 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2517,
/**/
--
Trees moving back and forth is what makes the wind blow.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///