mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 7.4.1269
Problem: Encoding {'key':} to JSON doesn't give an error (Tyru) Solution: Give an error.
This commit is contained in:
@@ -74,6 +74,7 @@ func Test_encode()
|
||||
|
||||
call assert_fails('echo jsonencode(function("tr"))', 'E474:')
|
||||
call assert_fails('echo jsonencode([function("tr")])', 'E474:')
|
||||
call assert_fails('echo jsonencode({"key":v:none})', 'E474:')
|
||||
endfunc
|
||||
|
||||
func Test_decode()
|
||||
|
Reference in New Issue
Block a user