aboutsummaryrefslogtreecommitdiffstats
path: root/util/set.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-02-16 08:23:26 +0100
committerKim Alvefur <zash@zash.se>2018-02-16 08:23:26 +0100
commit6013ca9e240b4a0378513e83e4069a3ce67a0902 (patch)
tree7a1b7473d196d006b8a5f59291340f9880fe1b40 /util/set.lua
parentd5e3920b6c12a9e616efba36a41bba8ca36f1aaf (diff)
downloadprosody-6013ca9e240b4a0378513e83e4069a3ce67a0902.tar.gz
prosody-6013ca9e240b4a0378513e83e4069a3ce67a0902.zip
util.set: Add a __name field to metatable
Diffstat (limited to 'util/set.lua')
-rw-r--r--util/set.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/set.lua b/util/set.lua
index c136a522..8630638e 100644
--- a/util/set.lua
+++ b/util/set.lua
@@ -12,7 +12,7 @@ local t_concat = table.concat;
local _ENV = nil;
-local set_mt = {};
+local set_mt = { __name = "set" };
function set_mt.__call(set, _, k)
return next(set._items, k);
end