vim-patch:8.1.2412: crash when evaluating expression with error (#17109)

This commit is contained in:
zeertzjq
2022-01-31 08:12:44 +08:00
committed by GitHub
parent 4dcc7bcbed
commit 62c8715ee9
2 changed files with 6 additions and 1 deletions

View File

@@ -303,3 +303,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