mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.1857: Vim9: using job_status() on an unused var gives an error
Problem: Vim9: using job_status() on an unused var gives an error. Solution: Return "fail". (closes #7158)
This commit is contained in:
@@ -74,7 +74,11 @@ def Test_assignment()
|
||||
|
||||
if has('channel')
|
||||
var chan1: channel
|
||||
assert_equal('fail', ch_status(chan1))
|
||||
|
||||
var job1: job
|
||||
assert_equal('fail', job_status(job1))
|
||||
|
||||
# calling job_start() is in test_vim9_fails.vim, it causes leak reports
|
||||
endif
|
||||
if has('float')
|
||||
|
Reference in New Issue
Block a user