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 -- [email protected] -- 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    ///

-- 
-- 
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/202102142141.11ELfY0H1510147%40masaka.moolenaar.net.

Raspunde prin e-mail lui