diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-04 17:27:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2024-06-04 17:27:13 -0300 |
commit | bdc85357aa41a9610498232c2cffe7aa191e5cf6 (patch) | |
tree | 49acbe61a8c1f4dfaa36892ad01eba7cf56a78f4 /manual | |
parent | b291008cc2a63eb19918d4cce7e58118f4154b03 (diff) | |
download | lua-bdc85357aa41a9610498232c2cffe7aa191e5cf6.tar.gz lua-bdc85357aa41a9610498232c2cffe7aa191e5cf6.tar.bz2 lua-bdc85357aa41a9610498232c2cffe7aa191e5cf6.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.of | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/manual/manual.of b/manual/manual.of index 337731fe..4fbdbf31 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -8942,13 +8942,13 @@ The returned table can contain all the fields returned by @Lid{lua_getinfo}, | |||
8942 | with the string @id{what} describing which fields to fill in. | 8942 | with the string @id{what} describing which fields to fill in. |
8943 | The default for @id{what} is to get all information available, | 8943 | The default for @id{what} is to get all information available, |
8944 | except the table of valid lines. | 8944 | except the table of valid lines. |
8945 | If present, | 8945 | The option @Char{f} |
8946 | the option @Char{f} | ||
8947 | adds a field named @id{func} with the function itself. | 8946 | adds a field named @id{func} with the function itself. |
8948 | If present, | 8947 | The option @Char{L} adds a field named @id{activelines} |
8949 | the option @Char{L} | 8948 | with the table of valid lines, |
8950 | adds a field named @id{activelines} with the table of | 8949 | provided the function is a Lua function. |
8951 | valid lines. | 8950 | If the function has no debug information, |
8951 | the table is empty. | ||
8952 | 8952 | ||
8953 | For instance, the expression @T{debug.getinfo(1,"n").name} returns | 8953 | For instance, the expression @T{debug.getinfo(1,"n").name} returns |
8954 | a name for the current function, | 8954 | a name for the current function, |