commit | 4f8b8faec31a934920a723053e8dcf47b6fac08c | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Feb 06 18:42:07 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Feb 06 18:42:07 2016 +0100 |
tree | 395264314aad30fcea00bbcd059f66d9b2e9687e | |
parent | 26dfc41335ef47fe765643148ae980be388084ec [diff] |
patch 7.4.1269 Problem: Encoding {'key':} to JSON doesn't give an error (Tyru) Solution: Give an error.
diff --git a/src/testdir/test_json.vim b/src/testdir/test_json.vim index beabec8..05c3949 100644 --- a/src/testdir/test_json.vim +++ b/src/testdir/test_json.vim
@@ -74,6 +74,7 @@ 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()