From 88a50ffa715483e7187c0d7d6caaf708ebacf756 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 29 Mar 2024 15:10:50 -0300 Subject: Fixed dangling 'StkId' in 'luaV_finishget' Bug introduced in 05932567. --- testes/events.lua | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'testes') diff --git a/testes/events.lua b/testes/events.lua index 8d8563b9..5360ac30 100644 --- a/testes/events.lua +++ b/testes/events.lua @@ -248,6 +248,15 @@ end test(Op(1), Op(2), Op(3)) +do -- test nil as false + local x = setmetatable({12}, {__eq= function (a,b) + return a[1] == b[1] or nil + end}) + assert(not (x == {20})) + assert(x == {12}) +end + + -- test `partial order' local function rawSet(x) -- cgit v1.2.3-55-g6feb