mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:7.4.1605
Problem: Catching exception that won't be thrown.
Solution: Remove try/catch.
3905e291fe
This commit is contained in:
parent
86706011a6
commit
34a7814219
@ -837,7 +837,7 @@ static int included_patches[] = {
|
|||||||
// 1608,
|
// 1608,
|
||||||
// 1607,
|
// 1607,
|
||||||
// 1606,
|
// 1606,
|
||||||
// 1605,
|
1605,
|
||||||
1604,
|
1604,
|
||||||
1603,
|
1603,
|
||||||
// 1602 NA
|
// 1602 NA
|
||||||
|
@ -274,17 +274,13 @@ describe('list and dictionary types', function()
|
|||||||
let dict.data = [1,2,3]
|
let dict.data = [1,2,3]
|
||||||
call dict.func("len: ")
|
call dict.func("len: ")
|
||||||
let x = dict.func("again: ")
|
let x = dict.func("again: ")
|
||||||
try
|
let Fn = dict.func
|
||||||
let Fn = dict.func
|
call Fn('xxx')]])
|
||||||
call Fn('xxx')
|
|
||||||
catch
|
|
||||||
$put =v:exception[:15]
|
|
||||||
endtry]])
|
|
||||||
expect([[
|
expect([[
|
||||||
|
|
||||||
len: 3
|
len: 3
|
||||||
again: 3
|
again: 3
|
||||||
Vim(call):E725: ]])
|
xxx3]])
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('Function in script-local List or Dict', function()
|
it('Function in script-local List or Dict', function()
|
||||||
|
Loading…
Reference in New Issue
Block a user