mirror of
https://github.com/neovim/neovim.git
synced 2026-01-06 13:27:43 +00:00
eval/typval: Allow NULL dict as tv_dict_get_callback() argument
Also removes NULL key input: tv_dict_find() does not allow this.
This commit is contained in:
@@ -1736,8 +1736,7 @@ describe('typval.c', function()
|
||||
return cb_lua, ret
|
||||
end
|
||||
itp('works with NULL dict', function()
|
||||
eq({{type='none'}, true},
|
||||
{tv_dict_get_callback(nil, nil, 0)})
|
||||
eq({{type='none'}, true}, {tv_dict_get_callback(nil, '')})
|
||||
end)
|
||||
itp('works', function()
|
||||
local lua_d = {
|
||||
|
||||
Reference in New Issue
Block a user