mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
patch 8.2.3847: illegal memory access when using a lambda with an error
Problem: Illegal memory access when using a lambda with an error. Solution: Avoid skipping over the NUL after a string.
This commit is contained in:
@@ -64,6 +64,8 @@ function Test_lambda_fails()
|
||||
call assert_fails('echo {a, a -> a + a}(1, 2)', 'E853:')
|
||||
call assert_fails('echo {a, b -> a + b)}(1, 2)', 'E451:')
|
||||
echo assert_fails('echo 10->{a -> a + 2}', 'E107:')
|
||||
|
||||
call assert_fails('eval 0->(', "E110: Missing ')'")
|
||||
endfunc
|
||||
|
||||
func Test_not_lamda()
|
||||
|
Reference in New Issue
Block a user