]> granicus.if.org Git - vim/commit
patch 8.2.2781: add() silently skips when adding to null list or blob v8.2.2781
authorBram Moolenaar <Bram@vim.org>
Sun, 18 Apr 2021 12:12:31 +0000 (14:12 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 18 Apr 2021 12:12:31 +0000 (14:12 +0200)
commitb7c21afef14bba0208f2c40d47c050a004eb2f34
treed7ac8993ffa95c8e45240dd873eb04e00235f074
parentd551d6c268e435e2fbba22775510fbd0a54477f6
patch 8.2.2781: add() silently skips when adding to null list or blob

Problem:    Add() silently skips when adding to null list or blob.
Solution:   Give an error in Vim9 script.  Allocate blob when it is NULL like
            with list and dict.
src/evalvars.c
src/list.c
src/testdir/test_blob.vim
src/testdir/test_vim9_builtin.vim
src/version.c
src/vim9execute.c