aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-05-13 13:10:35 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2024-05-13 13:10:35 -0300
commitdfbde4c7d540f81f2cc539741a2c1f4c00f91c10 (patch)
treeafb17d64bd9d7b5e61f94f373561c2fa98d5e713 /manual
parentde794a6527058e75b674118b35f39dcbb13e88b1 (diff)
downloadlua-dfbde4c7d540f81f2cc539741a2c1f4c00f91c10.tar.gz
lua-dfbde4c7d540f81f2cc539741a2c1f4c00f91c10.tar.bz2
lua-dfbde4c7d540f81f2cc539741a2c1f4c00f91c10.zip
Bug: Active-lines for stripped vararg functions
Lua seg. faults when asked to create the 'activelines' table for a vararg function with no debug information.
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of12
1 files changed, 6 insertions, 6 deletions
diff --git a/manual/manual.of b/manual/manual.of
index b68d41c9..c5c74696 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -8773,13 +8773,13 @@ The returned table can contain all the fields returned by @Lid{lua_getinfo},
8773with the string @id{what} describing which fields to fill in. 8773with the string @id{what} describing which fields to fill in.
8774The default for @id{what} is to get all information available, 8774The default for @id{what} is to get all information available,
8775except the table of valid lines. 8775except the table of valid lines.
8776If present, 8776The option @Char{f}
8777the option @Char{f}
8778adds a field named @id{func} with the function itself. 8777adds a field named @id{func} with the function itself.
8779If present, 8778The option @Char{L} adds a field named @id{activelines}
8780the option @Char{L} 8779with the table of valid lines,
8781adds a field named @id{activelines} with the table of 8780provided the function is a Lua function.
8782valid lines. 8781If the function has no debug information,
8782the table is empty.
8783 8783
8784For instance, the expression @T{debug.getinfo(1,"n").name} returns 8784For instance, the expression @T{debug.getinfo(1,"n").name} returns
8785a name for the current function, 8785a name for the current function,