aboutsummaryrefslogtreecommitdiffstats
path: root/util/ip.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-01-15 21:08:01 +0100
committerKim Alvefur <zash@zash.se>2020-01-15 21:08:01 +0100
commit34098ab9da64b314b430d82b3530035670039f79 (patch)
tree7008756512c375ccd03b5c8dc892a61317e67d5f /util/ip.lua
parentf38173be79e56e6033ab77f5af9d35603f540ddf (diff)
downloadprosody-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 'util/ip.lua')
0 files changed, 0 insertions, 0 deletions