Software /
code /
prosody
File
util/bit53.lua @ 10590:257dc26e8e65
util.array: Add a test case for a behavior change in Lua 5.3
In Lua 5.1 and 5.2 the __eq metamethod is not invoked if the other
argument is of a different metatable, but in Lua 5.3 it is.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 14 Jan 2020 23:39:47 +0100 |
parent | 10241:48f7cda4174d |
child | 12358:d77d8fba44ad |
line wrap: on
line source
-- Only the operators needed by net.websocket.frames are provided at this point return { band = function (a, b) return a & b end; bor = function (a, b) return a | b end; bxor = function (a, b) return a ~ b end; };