aboutsummaryrefslogtreecommitdiff
path: root/testes
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-03-29 15:10:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-03-29 15:10:50 -0300
commit88a50ffa715483e7187c0d7d6caaf708ebacf756 (patch)
treeabd032613bb066ebf4b4d3d2cb2e031347945c0a /testes
parent86a8e74824b3ec7918e3dbeaff222bb1ea1ec22f (diff)
downloadlua-88a50ffa715483e7187c0d7d6caaf708ebacf756.tar.gz
lua-88a50ffa715483e7187c0d7d6caaf708ebacf756.tar.bz2
lua-88a50ffa715483e7187c0d7d6caaf708ebacf756.zip
Fixed dangling 'StkId' in 'luaV_finishget'
Bug introduced in 05932567.
Diffstat (limited to 'testes')
-rw-r--r--testes/events.lua9
1 files changed, 9 insertions, 0 deletions
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
248test(Op(1), Op(2), Op(3)) 248test(Op(1), Op(2), Op(3))
249 249
250 250
251do -- test nil as false
252 local x = setmetatable({12}, {__eq= function (a,b)
253 return a[1] == b[1] or nil
254 end})
255 assert(not (x == {20}))
256 assert(x == {12})
257end
258
259
251-- test `partial order' 260-- test `partial order'
252 261
253local function rawSet(x) 262local function rawSet(x)