summaryrefslogtreecommitdiff
path: root/docgen
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2020-05-31 08:05:31 +0200
committerDaniel Kolesa <d.kolesa@samsung.com>2020-05-31 08:05:31 +0200
commit9f8b605cd28757ca8b81c54d08d2b46b42f6c040 (patch)
tree786e71f0f9013e636071f48cb14fcce61d663d88 /docgen
parentb8b91215f18d2e86f4f8467a32cf11940e060305 (diff)
fix filter with lua 5.2 no longer using a userdata proxy for objectsHEADmaster
Diffstat (limited to 'docgen')
-rw-r--r--docgen/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/docgen/util.lua b/docgen/util.lua
index 202712c..97e2fb0 100644
--- a/docgen/util.lua
+++ b/docgen/util.lua
@@ -49,7 +49,7 @@ end
49 49
50M.filter = function(list, pred) 50M.filter = function(list, pred)
51 local ret = {} 51 local ret = {}
52 if type(list) == "table" then 52 if type(list) == "table" and getmetatable(list) == nil then
53 for i, v in ipairs(list) do 53 for i, v in ipairs(list) do
54 if pred(v) then 54 if pred(v) then
55 ret[#ret + 1] = v 55 ret[#ret + 1] = v