diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-12-08 18:41:34 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-12-08 18:41:34 +0100 |
commit | 0ff822d2ebf0d130516631734b00179ba8dd8251 (patch) | |
tree | 87511bbe82022b075a96850a7e4a6009a6a67fce /src/testdir | |
parent | 1b03a193b3394597e4ed86aeea1e1b2c60ae9ad2 (diff) | |
download | vim-git-0ff822d2ebf0d130516631734b00179ba8dd8251.tar.gz |
patch 8.1.2412: crash when evaluating expression with errorv8.1.2412
Problem: Crash when evaluating expression with error. (Dhiraj Mishra)
Solution: Check parsing failed. (closes #5329)
Diffstat (limited to 'src/testdir')
-rw-r--r-- | src/testdir/test_lambda.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_lambda.vim b/src/testdir/test_lambda.vim index 768921995..c55de67b5 100644 --- a/src/testdir/test_lambda.vim +++ b/src/testdir/test_lambda.vim @@ -302,3 +302,8 @@ func Test_lambda_with_index() let Extract = {-> function(List, ['foobar'])()[0]} call assert_equal('foobar', Extract()) endfunc + +func Test_lambda_error() + " This was causing a crash + call assert_fails('ec{@{->{d->()()', 'E15') +endfunc |