summaryrefslogtreecommitdiff
path: root/src/testdir/test_json.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-06 18:42:07 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-06 18:42:07 +0100
commit4f8b8faec31a934920a723053e8dcf47b6fac08c (patch)
tree395264314aad30fcea00bbcd059f66d9b2e9687e /src/testdir/test_json.vim
parent26dfc41335ef47fe765643148ae980be388084ec (diff)
downloadvim-git-4f8b8faec31a934920a723053e8dcf47b6fac08c.tar.gz
patch 7.4.1269v7.4.1269
Problem: Encoding {'key':} to JSON doesn't give an error (Tyru) Solution: Give an error.
Diffstat (limited to 'src/testdir/test_json.vim')
-rw-r--r--src/testdir/test_json.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testdir/test_json.vim b/src/testdir/test_json.vim
index beabec883..05c394968 100644
--- a/src/testdir/test_json.vim
+++ b/src/testdir/test_json.vim
@@ -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()