0
0
mirror of https://github.com/vim/vim.git synced 2025-10-07 05:54:16 -04:00

patch 9.0.1911: Vim9: segfault with null object and instanceof()

Problem:  Vim9: segfault with null object and instanceof()
Solution: return early

closes: #13121

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Ernie Rael <errael@raelity.com>
This commit is contained in:
Ernie Rael
2023-09-19 20:14:18 +02:00
committed by Christian Brabandt
parent 346ac1429c
commit 3da696db6a
3 changed files with 9 additions and 0 deletions

View File

@@ -3032,6 +3032,10 @@ def Test_instanceof()
assert_true(instanceof(a3, [Base1, Base2, Intf1]))
enddef
Foo()
var o_null: Base1
assert_false(instanceof(o_null, Base1))
END
v9.CheckSourceSuccess(lines)
enddef