diff options
| author | Sean Dewar <seandewar@users.noreply.github.com> | 2021-08-07 00:48:05 +0100 |
|---|---|---|
| committer | Sean Dewar <seandewar@users.noreply.github.com> | 2021-08-12 22:35:25 +0100 |
| commit | 5503d8e28b1636f07bff4123a824b9ffdde4ca29 (patch) | |
| tree | 0190fdad81c06ae5237dfca6f0bab824f4b8521b /src/nvim/testdir | |
| parent | 5d883498179651c6da95b10959e83cf8707eaa4f (diff) | |
| download | rneovim-5503d8e28b1636f07bff4123a824b9ffdde4ca29.tar.gz rneovim-5503d8e28b1636f07bff4123a824b9ffdde4ca29.tar.bz2 rneovim-5503d8e28b1636f07bff4123a824b9ffdde4ca29.zip | |
fix(eval_lambda): cherry-pick leak fix from v8.1.2107
That patch also includes a test using test_refcount() for lambdas, but
such test functions are N/A for Nvim.
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_method.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_method.vim b/src/nvim/testdir/test_method.vim index 5ad1d47e71..7a6e6aa19d 100644 --- a/src/nvim/testdir/test_method.vim +++ b/src/nvim/testdir/test_method.vim @@ -145,6 +145,11 @@ func Test_method_lambda() " todo: lambda accepts more arguments than it consumes " call assert_fails('eval "text"->{x -> x .. " extended"}("more")', 'E99:') + + " Nvim doesn't include test_refcount(). + " let l = [1, 2, 3] + " eval l->{x -> x}() + " call assert_equal(1, test_refcount(l)) endfunc func Test_method_not_supported() |