aboutsummaryrefslogtreecommitdiffstats
path: root/net
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
commit6aca72acd8752ba17d1f5e1b3740c8fed22e81da (patch)
tree7008756512c375ccd03b5c8dc892a61317e67d5f /net
parentf4013af558b8e4489f66cf05279329c64289b2ef (diff)
downloadprosody-6aca72acd8752ba17d1f5e1b3740c8fed22e81da.tar.gz
prosody-6aca72acd8752ba17d1f5e1b3740c8fed22e81da.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 'net')
0 files changed, 0 insertions, 0 deletions