diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-04-16 15:41:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-04-16 15:41:44 -0300 |
commit | 681297187ec45268e872b26753c441586c12bdd8 (patch) | |
tree | 90e62c82146470a4c4931801a36f66de0bc92318 /lstate.h | |
parent | 5148954eed7550dcac587fce0214b470442efa0d (diff) | |
download | lua-681297187ec45268e872b26753c441586c12bdd8.tar.gz lua-681297187ec45268e872b26753c441586c12bdd8.tar.bz2 lua-681297187ec45268e872b26753c441586c12bdd8.zip |
Bug: yielding in '__close' mess up number of returns
Yielding in a __close metamethod called when returning vararg results
changes the top and so messes up the number of returned values.
Diffstat (limited to 'lstate.h')
-rw-r--r-- | lstate.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -165,7 +165,7 @@ typedef struct stringtable { | |||
165 | ** - field 'nyield' is used only while a function is "doing" an | 165 | ** - field 'nyield' is used only while a function is "doing" an |
166 | ** yield (from the yield until the next resume); | 166 | ** yield (from the yield until the next resume); |
167 | ** - field 'nres' is used only while closing tbc variables when | 167 | ** - field 'nres' is used only while closing tbc variables when |
168 | ** returning from a C function; | 168 | ** returning from a function; |
169 | ** - field 'transferinfo' is used only during call/returnhooks, | 169 | ** - field 'transferinfo' is used only during call/returnhooks, |
170 | ** before the function starts or after it ends. | 170 | ** before the function starts or after it ends. |
171 | */ | 171 | */ |