aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/thread_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2026-05-20 21:02:00 +0200
committerbfredl <bjorn.linse@gmail.com>2026-05-25 11:06:02 +0200
commit24e23de721bb8ddc042e0f11f44f4ff2ff7ebb0b (patch)
treeb382a4ab32dd24839ba4953b51c1d5c2373c0019 /test/functional/lua/thread_spec.lua
parent526ae1cc1b432d7f1d9a412be86ac28c809f77eb (diff)
downloadrneovim-24e23de721bb8ddc042e0f11f44f4ff2ff7ebb0b.tar.gz
rneovim-24e23de721bb8ddc042e0f11f44f4ff2ff7ebb0b.tar.bz2
rneovim-24e23de721bb8ddc042e0f11f44f4ff2ff7ebb0b.zip
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
Diffstat (limited to 'test/functional/lua/thread_spec.lua')
-rw-r--r--test/functional/lua/thread_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/lua/thread_spec.lua b/test/functional/lua/thread_spec.lua
index e4ff2b8068..1232b3843d 100644
--- a/test/functional/lua/thread_spec.lua
+++ b/test/functional/lua/thread_spec.lua
@@ -32,7 +32,7 @@ describe('thread', function()
{1:~ }|*5
{3: }|
{9:Luv thread:} |
- {9:[NULL]} |
+ {9:nil} |
{6:Press ENTER or type command to continue}^ |
]])
feed('<cr>')