Skip to content

Commit

Permalink
fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Sep 7, 2024
1 parent b5c4c63 commit 9ae6772
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"diagnostics": {
"globals": [
"jit"
],
"groupFileStatus": {
"unused": "Any"
},
Expand Down
1 change: 1 addition & 0 deletions json.lua
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ function encode_map.table(t)
if t[1] == nil then
error("invalid table: sparse array is not supported")
end
---@diagnostic disable-next-line: undefined-global
if jit and t[0] ~= nil then
-- 0 is the first index in luajit
error("invalid table: mixed or invalid key types: "..0)
Expand Down

0 comments on commit 9ae6772

Please sign in to comment.