Fixed dangling 'StkId' in 'luaV_finishget'

Bug introduced in 05932567.
This commit is contained in:
Roberto Ierusalimschy
2024-03-29 15:10:50 -03:00
parent 86a8e74824
commit 88a50ffa71
5 changed files with 42 additions and 26 deletions

View File

@@ -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)