Skip to content

Commit 9ae6772

Browse files
committed
fixes #2
1 parent b5c4c63 commit 9ae6772

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

.luarc.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
22
"diagnostics": {
3-
"globals": [
4-
"jit"
5-
],
63
"groupFileStatus": {
74
"unused": "Any"
85
},

json.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,7 @@ function encode_map.table(t)
222222
if t[1] == nil then
223223
error("invalid table: sparse array is not supported")
224224
end
225+
---@diagnostic disable-next-line: undefined-global
225226
if jit and t[0] ~= nil then
226227
-- 0 is the first index in luajit
227228
error("invalid table: mixed or invalid key types: "..0)

0 commit comments

Comments
 (0)