diff options
author | Kim Alvefur <zash@zash.se> | 2020-01-15 21:08:01 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-01-15 21:08:01 +0100 |
commit | 34098ab9da64b314b430d82b3530035670039f79 (patch) | |
tree | 7008756512c375ccd03b5c8dc892a61317e67d5f /plugins/mod_lastactivity.lua | |
parent | f38173be79e56e6033ab77f5af9d35603f540ddf (diff) | |
download | prosody-34098ab9da64b314b430d82b3530035670039f79.tar.gz prosody-34098ab9da64b314b430d82b3530035670039f79.zip |
util.array: Fix equality metamethod in Lua 5.3
Lua 5.2 only used the __eq metamethod if both operands have the same
__eq, but Lua 5.3 will pick one from either operands that has one as
long as both are tables.
This results in array() == {} and all sorts of odd behavior, including
array() == util.json.null.
<MattJ> I think [array() == {}] should have the same semantics as {} == {}
Diffstat (limited to 'plugins/mod_lastactivity.lua')
0 files changed, 0 insertions, 0 deletions