summaryrefslogtreecommitdiffstats
path: root/src/json.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-05-07 17:55:55 +0200
committerBram Moolenaar <Bram@vim.org>2021-05-07 17:55:55 +0200
commitf18332fb9e2e4208a97d800f096b02c6681780e7 (patch)
tree8cbfcb58bfbe67b2549d76ba721b2db9c33a602b /src/json.c
parente08795e1ecf0b85751e9f41021603c39ef026d92 (diff)
patch 8.2.2842: Vim9: skip argument to searchpair() is not compiledv8.2.2842
Problem: Vim9: skip argument to searchpair() is not compiled. Solution: Add VAR_INSTR.
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c
index dba003eae7..25349b7551 100644
--- a/src/json.c
+++ b/src/json.c
@@ -230,6 +230,7 @@ json_encode_item(garray_T *gap, typval_T *val, int copyID, int options)
case VAR_PARTIAL:
case VAR_JOB:
case VAR_CHANNEL:
+ case VAR_INSTR:
semsg(_(e_cannot_json_encode_str), vartype_name(val->v_type));
return FAIL;