summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-12-08 18:41:34 +0100
committerBram Moolenaar <Bram@vim.org>2019-12-08 18:41:34 +0100
commit0ff822d2ebf0d130516631734b00179ba8dd8251 (patch)
tree87511bbe82022b075a96850a7e4a6009a6a67fce /src/testdir
parent1b03a193b3394597e4ed86aeea1e1b2c60ae9ad2 (diff)
downloadvim-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.vim5
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