Allow limited access to unsafepairs/unsafenext

This commit is contained in:
2021-07-05 15:44:37 -04:00
parent 596d829ea6
commit b09a20ebea
3 changed files with 37 additions and 10 deletions

View File

@@ -36,7 +36,7 @@ inspect.KEY = {}
inspect.METATABLE = {}
local function rawpairs(t)
return next, t, nil
return table.unsafepairs(t)
end
-- Apostrophizes the string if it has quotes, but not aphostrophes