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 | d5e3920b6c12a9e616efba36a41bba8ca36f1aaf (patch) | |
tree | 5ff9efd04df38839ed509cf1aa2d5878bd8594a3 /util/array.lua | |
parent | 6cdc43292e4d549fc2ebe0a2275e4101891823f3 (diff) | |
download | prosody-d5e3920b6c12a9e616efba36a41bba8ca36f1aaf.tar.gz prosody-d5e3920b6c12a9e616efba36a41bba8ca36f1aaf.zip |
util.array: Add a __name field to metatable
Diffstat (limited to 'util/array.lua')
-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 |