mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.4128: crash when method cannot be found
Problem: Crash when method cannot be found. (Christian J. Robinson) Solution: Don't mix up pointer names.
This commit is contained in:
@@ -3214,6 +3214,14 @@ def Test_expr8_method_call_import()
|
||||
END
|
||||
CheckScriptSuccess(lines)
|
||||
|
||||
lines =<< trim END
|
||||
vim9script
|
||||
import './Xsquare.vim'
|
||||
|
||||
echo range(5)->Xsquare.NoSuchFunc()
|
||||
END
|
||||
CheckScriptFailure(lines, 'E1048: Item not found in script: NoSuchFunc')
|
||||
|
||||
delete('Xsquare.vim')
|
||||
enddef
|
||||
|
||||
|
Reference in New Issue
Block a user