comparison src/testdir/test_vim9_script.vim @ 25082:5c7a09cf97a1 v8.2.3078

patch 8.2.3078: Vim9: profile test fails Commit: https://github.com/vim/vim/commit/834193afd7195bc96026d2aed696d64f8075cd35 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jun 30 20:39:15 2021 +0200 patch 8.2.3078: Vim9: profile test fails Problem: Vim9: profile test fails. Solution: Make throw in :catch jump to :finally.
author Bram Moolenaar <Bram@vim.org>
date Wed, 30 Jun 2021 20:45:04 +0200
parents 146c9720e563
children 075790758d11
comparison
equal deleted inserted replaced
25081:8266083db124 25082:5c7a09cf97a1
801 l->add('6') 801 l->add('6')
802 endtry 802 endtry
803 endtry 803 endtry
804 endtry 804 endtry
805 assert_equal(['1', '2', '3', '4', '5', '6'], l) 805 assert_equal(['1', '2', '3', '4', '5', '6'], l)
806
807 l = []
808 try
809 try
810 l->add('1')
811 throw 'foo'
812 l->add('x')
813 catch
814 l->add('2')
815 throw 'bar'
816 l->add('x')
817 finally
818 l->add('3')
819 endtry
820 l->add('x')
821 catch /bar/
822 l->add('4')
823 endtry
824 assert_equal(['1', '2', '3', '4'], l)
806 enddef 825 enddef
807 826
808 def TryOne(): number 827 def TryOne(): number
809 try 828 try
810 return 0 829 return 0