From 38cc7d40a4bcb89314d212fdffd2ca8deebc3cb7 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 15 Feb 2021 10:38:09 -0300 Subject: Bug: cannot allow the call 'debug.getinfo(0, ">")' A 'what' argument starting with '>' indicates that there is a function in the C stack, which won't be there if the first argument is not a function. --- testes/db.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'testes') diff --git a/testes/db.lua b/testes/db.lua index ce559ad9..d64952d9 100644 --- a/testes/db.lua +++ b/testes/db.lua @@ -31,6 +31,7 @@ end do assert(not pcall(debug.getinfo, print, "X")) -- invalid option + assert(not pcall(debug.getinfo, 0, ">")) -- invalid option assert(not debug.getinfo(1000)) -- out of range level assert(not debug.getinfo(-1)) -- out of range level local a = debug.getinfo(print) -- cgit v1.2.3-55-g6feb