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.
This commit is contained in:
2
lstate.h
2
lstate.h
@@ -165,7 +165,7 @@ typedef struct stringtable {
|
||||
** - field 'nyield' is used only while a function is "doing" an
|
||||
** yield (from the yield until the next resume);
|
||||
** - field 'nres' is used only while closing tbc variables when
|
||||
** returning from a C function;
|
||||
** returning from a function;
|
||||
** - field 'transferinfo' is used only during call/returnhooks,
|
||||
** before the function starts or after it ends.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user