]> granicus.if.org Git - vim/commit
patch 8.2.4322: Vim9: crash when using funcref with closure v8.2.4322
authorBram Moolenaar <Bram@vim.org>
Mon, 7 Feb 2022 19:56:43 +0000 (19:56 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 7 Feb 2022 19:56:43 +0000 (19:56 +0000)
commit7aca5ca6763e50d2c23953b20e30fca7457c9abf
treea0a1e5077975c095e06f37b668baff7f68a92230
parent92368aad613bca700877ccb1725e1cb5a80dd34a
patch 8.2.4322: Vim9: crash when using funcref with closure

Problem:    Vim9: crash when using funcref with closure.
Solution:   Keep a reference to the funcref that has the outer context.
            (closes #9716)
src/eval.c
src/evalfunc.c
src/structs.h
src/testdir/test_vim9_func.vim
src/version.c
src/vim9execute.c