diff options
author | Kim Alvefur <zash@zash.se> | 2018-02-16 08:23:15 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-02-16 08:23:15 +0100 |
commit | 129a24f6cc16f9151327eccec2112db9a1ddff53 (patch) | |
tree | 5ff9efd04df38839ed509cf1aa2d5878bd8594a3 | |
parent | 61fe6404359a0e7d59e1c48368e7c30ef98dbf26 (diff) | |
download | prosody-129a24f6cc16f9151327eccec2112db9a1ddff53.tar.gz prosody-129a24f6cc16f9151327eccec2112db9a1ddff53.zip |
util.array: Add a __name field to metatable
-rw-r--r-- | util/array.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/array.lua b/util/array.lua index 150b4355..1a8ffec7 100644 --- a/util/array.lua +++ b/util/array.lua @@ -19,7 +19,7 @@ local type = type; local array = {}; local array_base = {}; local array_methods = {}; -local array_mt = { __index = array_methods, __tostring = function (self) return "{"..self:concat(", ").."}"; end }; +local array_mt = { __index = array_methods, __name = "array", __tostring = function (self) return "{"..self:concat(", ").."}"; end }; local function new_array(self, t, _s, _var) if type(t) == "function" then -- Assume iterator |