fix(context): don't leak memory on multiple invalid objects (#25979)

This commit is contained in:
zeertzjq
2023-11-11 13:10:26 +08:00
committed by GitHub
parent e9b9a86cd5
commit fdaf6bc557
3 changed files with 3 additions and 3 deletions

View File

@@ -1982,7 +1982,7 @@ describe('API', function()
it('errors when context dictionary is invalid', function()
eq('E474: Failed to convert list to msgpack string buffer',
pcall_err(nvim, 'load_context', { regs = { {} } }))
pcall_err(nvim, 'load_context', { regs = { {} }, jumps = { {} } }))
eq("Empty dictionary keys aren't allowed",
pcall_err(nvim, 'load_context', { regs = { { [''] = '' } } }))
end)