data: data/plist (XML read/write byte-identical to plistlib, binary bplist00 read incl. UIDs / shared refs / cycle guard); plistlib fixtures. Array detection in Json / msgpack / cbor encoders no longer trusts next(t, #t)
This commit is contained in:
1 parent
6cee99f4e3
commit
6d8262cf4a
10 files changed
+830
-9
No files matched your search
@@ -341,9 +341,6 @@ local function isArray(t: any, emptyMap: boolean): boolean
|
||||
if n == 0 then
|
||||
return next(t) == nil and not emptyMap
|
||||
end
|
||||
if next(t, n) ~= nil then
|
||||
return false
|
||||
end
|
||||
local c = 0
|
||||
for _ in next, t do
|
||||
c += 1
|
||||
|
||||
Reference in new issue
Block a user