mirror of
https://github.com/lua/lua
synced 2026-09-27 00:28:25 +03:00
Bug: 'lua_load' does not preserve the stack
'lua_load' does not preserve the stack through the calls to the reader function, as it should. Immediately after the first call (to detect whether chunk is binary) it adds stuff, and it also adds a new table when starting the compilation of each new function.
This commit is contained in:
parent
0c16a42d61
commit
3228a97c6a
7 changed files with 77 additions and 27 deletions
|
|
@ -30,8 +30,8 @@
|
|||
|
||||
|
||||
/* load one chunk; from lundump.c */
|
||||
LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name,
|
||||
int fixed);
|
||||
LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, Table *anchor,
|
||||
const char* name, int fixed);
|
||||
|
||||
/* dump one chunk; from ldump.c */
|
||||
LUAI_FUNC int luaU_dump (lua_State* L, const Proto* f, lua_Writer w,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue