comparison src/testdir/test_vim9_func.vim @ 23074:cd885eb0e50c v8.2.2083

patch 8.2.2083: Vim9: crash when using ":silent!" and getting member fails Commit: https://github.com/vim/vim/commit/af0df47a7671a39f2cde950587ba48800188bfb9 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 2 20:51:22 2020 +0100 patch 8.2.2083: Vim9: crash when using ":silent!" and getting member fails Problem: Vim9: crash when using ":silent!" and getting member fails. Solution: Jump to on_fatal_error. (closes https://github.com/vim/vim/issues/7412)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Dec 2020 21:00:04 +0100
parents 4b398a229b0b
children c713358da074
comparison
equal deleted inserted replaced
23073:e36f793b3d4c 23074:cd885eb0e50c
1766 Func() 1766 Func()
1767 END 1767 END
1768 CheckScriptFailure(lines, 'E492:', 8) 1768 CheckScriptFailure(lines, 'E492:', 8)
1769 enddef 1769 enddef
1770 1770
1771 def Test_abort_even_with_silent()
1772 var lines =<< trim END
1773 vim9script
1774 g:result = 'none'
1775 def Func()
1776 eval {-> ''}() .. '' .. {}['X']
1777 g:result = 'yes'
1778 enddef
1779 sil! Func()
1780 assert_equal('none', g:result)
1781 END
1782 CheckScriptSuccess(lines)
1783 enddef
1784
1771 1785
1772 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker 1786 " vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker