mirror of
https://github.com/neovim/neovim.git
synced 2026-05-26 14:58:28 +00:00
fix(lua): use even safer and even better error() message conversion
problem:
this crashes neovim:
ondska = setmetatable({}, {__tostring = error})
error(ondska)
solution:
make it not crash neovim
This commit is contained in:
@@ -174,7 +174,7 @@ describe('vim.uv', function()
|
||||
{1:~ }|*5
|
||||
{3: }|
|
||||
{9:Lua callback:} |
|
||||
{9:[NULL]} |
|
||||
{9:nil} |
|
||||
{6:Press ENTER or type command to continue}^ |
|
||||
]]
|
||||
screen:expect(s)
|
||||
@@ -209,7 +209,7 @@ describe('vim.uv', function()
|
||||
screen:expect([[
|
||||
{3: }|
|
||||
{9:Lua callback:} |
|
||||
{9:[NULL]} |
|
||||
{9:nil} |
|
||||
{6:Press ENTER or type command to continue}^ |
|
||||
]])
|
||||
feed('<cr>')
|
||||
|
||||
Reference in New Issue
Block a user