diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-13 21:29:32 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-13 21:29:32 +0100 |
commit | 21456cdccbdf9d222938139769f1abe95b8effdd (patch) | |
tree | d5d71fb7b621390690e1495e296da3f91d94eca1 /src/testdir/test_vim9_disassemble.vim | |
parent | 3dd64608f6183a49c6854652017b928556224935 (diff) | |
download | vim-git-21456cdccbdf9d222938139769f1abe95b8effdd.tar.gz |
patch 8.2.0253: crash when using :disassamble without argumentv8.2.0253
Problem: Crash when using :disassamble without argument. (Dhiraj Mishra)
Solution: Check for missing argument. (Dominique Pelle, closes #5635,
closes #5637)
Diffstat (limited to 'src/testdir/test_vim9_disassemble.vim')
-rw-r--r-- | src/testdir/test_vim9_disassemble.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/testdir/test_vim9_disassemble.vim b/src/testdir/test_vim9_disassemble.vim index d10e74148..a873c8657 100644 --- a/src/testdir/test_vim9_disassemble.vim +++ b/src/testdir/test_vim9_disassemble.vim @@ -23,6 +23,10 @@ enddef def Test_disassemble_load() assert_fails('disass NoFunc', 'E1061:') assert_fails('disass NotCompiled', 'E1062:') + assert_fails('disass', 'E471:') + assert_fails('disass [', 'E475:') + assert_fails('disass 234', 'E475:') + assert_fails('disass <XX>foo', 'E475:') let res = execute('disass s:ScriptFuncLoad') assert_match('<SNR>\d*_ScriptFuncLoad.*' |