Mercurial > vim
diff src/testdir/test_filter_map.vim @ 17944:745c02392844 v8.1.1968
patch 8.1.1968: crash when using nested map()
Commit: https://github.com/vim/vim/commit/27da7de7c547dbf983ed7dd901ea59be4e7c9ab2
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 3 17:13:37 2019 +0200
patch 8.1.1968: crash when using nested map()
Problem: Crash when using nested map().
Solution: Clear the pointer in prepare_vimvar(). (Ozaki Kiichi,
closes #4890, closes #4891)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 03 Sep 2019 17:15:03 +0200 |
parents | 7f3283683d97 |
children | 04c164c971a3 |
line wrap: on
line diff
--- a/src/testdir/test_filter_map.vim +++ b/src/testdir/test_filter_map.vim @@ -57,6 +57,9 @@ func Test_filter_map_nested() let x = {"x":10} let r = map(range(2), 'filter(copy(x), "1")') call assert_equal([x, x], r) + + let r = map(copy(x), 'filter(copy(x), "1")') + call assert_equal({"x": x}, r) endfunc " dict with funcref