[inspect] fix inserting to table
This commit is contained in:
parent
9d58bcb79f
commit
d2f43ea1a7
|
@ -21,8 +21,8 @@ end
|
||||||
local function prepareObject(other)
|
local function prepareObject(other)
|
||||||
assert(type(other) == "table", "object has to be a table")
|
assert(type(other) == "table", "object has to be a table")
|
||||||
local keys = {}
|
local keys = {}
|
||||||
for key, _ in pairs(other) do
|
for k, _ in pairs(other) do
|
||||||
keys.insert(key)
|
table.insert(keys, k)
|
||||||
end
|
end
|
||||||
table.sort(keys)
|
table.sort(keys)
|
||||||
return other, keys
|
return other, keys
|
||||||
|
|
Loading…
Reference in a new issue