1
0
forked from aniani/vim

patch 8.0.0180: error E937 is used twice

Problem:    Error E937 is used both for duplicate key in JSON and for trying
            to delete a buffer that is in use.
Solution:   Rename the JSON error to E938. (Norio Takagi, closes #1376)
This commit is contained in:
Bram Moolenaar
2017-01-14 14:36:08 +01:00
parent 9be7c04e6c
commit 83381f7129
3 changed files with 4 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ func Test_json_decode()
call assert_fails('call json_decode("blah")', "E474:")
call assert_fails('call json_decode("true blah")', "E488:")
call assert_fails('call json_decode("<foobar>")', "E474:")
call assert_fails('call json_decode("{\"a\":1,\"a\":2}")', "E937:")
call assert_fails('call json_decode("{\"a\":1,\"a\":2}")', "E938:")
call assert_fails('call json_decode("{")', "E474:")
call assert_fails('call json_decode("{foobar}")', "E474:")