0
0
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:
Bram Moolenaar
2016-02-06 18:42:07 +01:00
parent 26dfc41335
commit 4f8b8faec3
3 changed files with 14 additions and 7 deletions

View File

@@ -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()