1
0
forked from aniani/vim

patch 7.4.1223

Problem:    Crash when setting v:errors to a number.
Solution:   Free the typval without assuming its type. (Yasuhiro Matsumoto)
This commit is contained in:
Bram Moolenaar
2016-01-31 16:28:04 +01:00
parent e2c3810c2a
commit a542c680a8
3 changed files with 19 additions and 7 deletions

View File

@@ -37,6 +37,15 @@ func Test_assert_exception()
endtry
endfunc
func Test_wrong_error_type()
let save_verrors = v:errors
let v:['errors'] = {'foo': 3}
call assert_equal('yes', 'no')
let verrors = v:errors
let v:errors = save_verrors
call assert_equal(type([]), type(verrors))
endfunc
func Test_user_is_happy()
smile
sleep 300m