Feature #1341 ยป 0037-Apply-patch-7-for-lua-5.4.7.patch
dependencies/lua-5.4/Version.txt | ||
---|---|---|
(http://www.lua.org/ftp/lua-5.4.7.tar.gz)
|
||
Upstream bug fixes from https://www.lua.org/bugs.html applied:
|
||
2, 3, 5, 6
|
||
2, 3, 5, 6, 7
|
||
Upstream bug fixes not applicable to our tree:
|
||
1
|
||
dependencies/lua-5.4/src/lstate.c | ||
---|---|---|
luaC_freeallobjects(L); /* just collect its objects */
|
||
else { /* closing a fully built state */
|
||
L->ci = &L->base_ci; /* unwind CallInfo list */
|
||
L->errfunc = 0; /* stack unwind can "throw away" the error function */
|
||
luaD_closeprotected(L, 1, LUA_OK); /* close all upvalues */
|
||
L->top.p = L->stack.p + 1; /* empty the stack to run finalizers */
|
||
luaC_freeallobjects(L); /* collect all objects */
|
||
luai_userstateclose(L);
|
||
}
|
||
... | ... | |
if (status == LUA_YIELD)
|
||
status = LUA_OK;
|
||
L->status = LUA_OK; /* so it can run __close metamethods */
|
||
L->errfunc = 0; /* stack unwind can "throw away" the error function */
|
||
status = luaD_closeprotected(L, 1, status);
|
||
if (status != LUA_OK) /* errors? */
|
||
luaD_seterrorobj(L, status, L->stack.p + 1);
|