0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

patch 8.2.0706: Vim9: using assert_fails() causes function to finish

Problem:    Vim9: using assert_fails() causes function to finish.
Solution:   Check did_emsg instead of called_emsg.
This commit is contained in:
Bram Moolenaar
2020-05-07 14:07:25 +02:00
parent 3657686a0e
commit 8a1c101315
4 changed files with 6 additions and 9 deletions

View File

@@ -1311,13 +1311,6 @@ def Test_vim9_comment()
'catch /pat/# comment',
'endtry',
], 'E488:')
CheckScriptFailure([
'vim9script',
'try',
' throw "pat"',
'catch /pat/# comment',
'endtry',
], 'E605:')
CheckDefFailure([
'try',
'echo "yes"',